 	function checkForm() 
	{
		realname = document.getElementById("realname").value;
  		telephone = document.getElementById("telephone").value;
		code = document.getElementById("security_code").value;
	
		if (realname == "") 
		{
  			hideAllErrors();
			document.getElementById("realnameError").style.display = "inline";
			document.getElementById("realname").select();
			document.getElementById("realname").focus();
 		return false;
  		} 
		
		else if (telephone == "") 
		{
			hideAllErrors();
			document.getElementById("telephoneError").style.display = "inline";
			document.getElementById("telephone").select();
			document.getElementById("telephone").focus();
  		return false;
  		} 
		
		else if (code == "") 
		{
			hideAllErrors();
			document.getElementById("codeError").style.display = "inline";
			document.getElementById("security_code").select();
			document.getElementById("security_code").focus();
  		return false;
  		} 		
  	
	return true;
 	}
	
  	function hideAllErrors() 
	{
		document.getElementById("realnameError").style.display = "none"
		document.getElementById("telephoneError").style.display = "none"
		document.getElementById("codeError").style.display = "none"
  	}

