function theform(theForm)
					{
					
					  if (theForm.Name.value == "")
					  {
					    alert("Please enter your name.");
					    theForm.Name.focus();
					    return (false);
					  }
					
					  
					  
					  if (theForm.Email.value == "")
					  {
					    alert("Please enter a value for the \"E-mail Address\" field.");
					    theForm.Email.focus();
					    return (false);
					  }
					
					  if (theForm.Email.value.length < 6)
					  {
					    alert("Please enter at least 6 characters in the \"E-mail Address\" field.");
					    theForm.Email.focus();
					    return (false);
					  }
					
					
 if( notValidEmail(theForm.Email ) ){
        alert( 'Please enter only letter, digit and \"@.-_\" characters in the \"E-Email\" field.' );
		theForm.Email.focus();
        return false;}



function notValidEmail( str ){
    mailRE = new RegExp( );
    mailRE.compile( '^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi' );
    return !(mailRE.test( str.value ));
} 
					
					  if (theForm.ConfirmEmail.value == "")
					  {
					    alert("Please enter a value for the \"Confirm E-mail Address\" field.");
					    theForm.ConfirmEmail.focus();
					    return (false);
					  }
					
					  if (theForm.ConfirmEmail.value.length < 6)
					  {
					    alert("Please enter at least 6 characters in the \"Confirm E-mail Address\" field.");
					    theForm.ConfirmEmail.focus();
					    return (false);
					  }
								  

  if (theForm.ConfirmEmail.value == "")
  {
    alert("Please enter a value for the \"ConfirmEmail\" field.");
    theForm.ConfirmEmail.focus();
    return (false);
  }


 if (theForm.ContactNumber.value == "") 
  {
    alert("Please enter your Contact Number.");
    theForm.ContactNumber.focus();
    return (false);
  }

					  
					  
					   if (theForm.PostalAddress.value == "")
					  {
					    alert("Please enter your Postal Address.");
					    theForm.PostalAddress.focus();
					    return (false);
					  }
					  
					  
					  
if ( theForm.infosupplied.checked == false )
    {
        alert ( "Is the information supplied correct and true?" );
	theForm.infosupplied.focus();
        return (false);
    }


					  
					   if ( theForm.SpamCheck.value == "" )
{
alert ( "Please enter the red number" );
theForm.SpamCheck.focus();
return false;
} 

					  return (true);
					}

