function verifyRegForm()
{
  if (document.TheForm.salutation.value.length == 0) {
	alert("Please select the title.");
	document.TheForm.salutation.focus();
	return false;
  }

  if (document.TheForm.firstname.value.length == 0) {
	alert("Please enter your first name.");
	document.TheForm.firstname.focus();
	return false;
  }

  if (document.TheForm.lastname.value.length == 0) {
	alert("Please enter your family name.");
	document.TheForm.lastname.focus();
	return false;
  }

  if (document.TheForm.country.value.length == 0) {
	alert("Please select your country.");
	document.TheForm.country.focus();
	return false;
  }
 
  if (document.TheForm.email.value.length == 0) {
	alert("Please enter your email address.");
	document.TheForm.email.focus();
	return false;
  } else
  	{
  		if (document.TheForm.email.value.charAt(0) == " ")
  		{
  		  alert("The first character of Email field cannot be space.");
		  document.TheForm.email.focus();
   		  return false;
   		} 
		else
   		{
   		     	var email_v = document.TheForm.email.value;
		    	if (email_v.search('@') == -1) {
		     	   alert("Invalid Email Address without '@'.");
		           document.TheForm.email.focus();
		           return false;  
				}
				if (document.TheForm.email.value != document.TheForm.email2.value)
				{
					alert ("Those emails don\'t match!");
					document.TheForm.email2.focus();
					return false;
				}
			

   		}
  	}

  return true;

}


 