// JavaScript Document

function next_box(id,nextId,targetLength)
{
	var currentBox = document.getElementById(id);
	var nextBox = document.getElementById(nextId);
	
	if(currentBox.value.length == targetLength)
	{
		nextBox.value = "";
		nextBox.focus();
		//document.write('lalal');
	}
}


function show_page(x){
						 
			window.location = x;			 
									
	}
	
function popUp(x){
						 
			window.open(x);
		 
									
	}
	
	
	
	function show_tooltip(name){
						 
			document.getElementById('tooltip_' + name).style.display = "block";
			document.getElementById(name).style.MozOpacity = "0.4";
			document.getElementById(name).style.filter="alpha(opacity=40)";
			
			

	
	}
	



	
	function hide_tooltip(name){
			document.getElementById('tooltip_' + name).style.display = "none";
			document.getElementById(name).style.MozOpacity = "1";
			document.getElementById(name).style.filter="alpha(opacity=100)";

						 
									
	}
	
	
	function show(name){
						 
			document.getElementById(name).style.display = "block";
	
	}
	
	function hide(name){
						 
			document.getElementById(name).style.display = "none";
	
	}
	
	function restart(y){
			

			var yChunks = y.split(",");			
			
			
			for(i = 0; i < yChunks.length; ++i){
			
				show(yChunks[i]);hide('shadow_' + yChunks[i]);
			
			}
			
	}
	
	
	
	function clickclear(thisfield, defaulttext) {
		if (thisfield.value == defaulttext) {
			thisfield.value = "";
			}
	}
	
	
	function clickrecall(thisfield, defaulttext) {
		if (thisfield.value == "") {
			thisfield.value = defaulttext;
			}
	}
