

function errorString_display ()  /*This function shows the validation layer and writes to it */
{  
	validation_layer.style.display = 'block';											
	valText = '';
	valText = valText + "<strong>Some information is incomplete...</strong><br />";
	valText = valText + "<span style='text-align: left; '>";
	valText = valText + error_string;
	valText = valText + "</span>";
	validation_layer.innerHTML = valText;
	return (false) ; 
	/*This returns FALSE to the validate function, which in turn passes FALSE back to root and cancels the submit.*/
}  	


function contact_validate(myForm)
	{	
	error_string = ""
			

		if (   eval(myForm + ".firstname.value" ) == '' )
			{
				error_string = error_string + "<BR />Choose a firstname." 
			}
			
		if (   eval(myForm + ".lastname.value" ) == '' )
			{
				error_string = error_string + "<br />Choose a surname." 
			}						
	
		if (   eval(myForm + ".email.value" ) == '' )
			{
				error_string = error_string + "<br />Choose an email address." 
			}
				
		if (error_string != "")	 { if (errorString_display() == false )  {return (false);}	 }
	
	
} /* End of function */
