function form_validator(theForm)
{



	if (theForm.firstname.value=="")
  		
	{

   		alert("Please enter your Firstname.");
    		theForm.firstname.focus();
    		return false;
  
	}


	if (theForm.lastname.value=="")
  		
	{

   		alert("Please enter your Lastname.");
    		theForm.lastname.focus();
    		return false;
  
	}



	if (theForm.phone.value=="")
  		
	{

   		alert("Please enter your Phone Number.");
    		theForm.phone.focus();
    		return false;
  
	}


	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theForm.email.value))
		
	{

	}

	else

	{

		alert("Invalid E-mail Address! Please re-enter.");
		theForm.email.focus();
		return false;
	
	}


}