function changeInfo(type){
	
	if(typeof(takeTo) == 'undefined'){
		
		takeTo = 'ignore';
		
	}

	if(takeTo != 'ignore'){
		
		type = takeTo;
		takeTo = 'ignore';
		
	} else if(typeof(type) != 'string'){
		
		type = parseUrl(location.href, 'page');
		
	}

	if(document.getElementById(type + 'Info').style.display == 'block'){
		
		document.getElementById(type + 'Info').style.display = 'none';
		
	} else {
	
		var slides = document.getElementById('contents');
		var frames = slides.getElementsByTagName('div');
		for(var i = 0; i < frames.length; i++){
			
			if(frames[i].id != 'reviewsDisplay'){
				
				frames[i].style.display = 'none';
				
			}
			
		}
		
		document.getElementById(type + 'Info').style.display = 'block';
		
	}
	
}

function popUp(URL){
	
	day = new Date();
	id = day.getTime();
	
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=470,left = 565,top = 305');");
	
}

function focusIt(){
	
	document.getElementById('password').focus();
	
}
	

function clickClear(thisfield, defaulttext){
	
	if(thisfield.value == defaulttext){
					
		thisfield.value = "";
			
	}
	
}

function clickRecall(thisfield, defaulttext){
	
	if (thisfield.value == ""){
		
		thisfield.value = defaulttext;
		
	}
	
}

function parseUrl(url,variable){
		
	var theurl = url.split('?');
		
	if(theurl[1]){
			
		pars = theurl[1].split('&');
			
		for(i = 0; i < pars.length; i++){
				
			var check = pars[i].split('=');
				
			if(check[0] == variable){
				
				return check[1];
					
			}
				
		}
			
	}
		
	return false;
		
}