
function VerifyForm(theForm)
{
	if (theForm.FirstName.value == "")
		{
   	   window.alert("Please enter your First Name...");
   	   theForm.FirstName.focus();
	   return false;
   		}      
	if (theForm.LastName.value == "")
		{
   	   window.alert("Please enter your Last Name...");
   	   theForm.LastName.focus();
	   return false;
   		}      
	if (theForm.Address1.value == "")
		{
   	   window.alert("Please enter your Address...");
   	   theForm.Address1.focus();
	   return false;
   		}      
	if (theForm.City.value == "")
		{
   	   window.alert("Please enter your City...");
   	   theForm.City.focus();
	   return false;
   		}      
	if (theForm.State.value == "")
		{
   	   //window.alert("Please enter your State...");
   	   //theForm.State.focus();
	   //return false;
   		}      
	if (theForm.ZIP.value == "")
		{
   	   //window.alert("Please enter your ZIP Code...");
   	   //theForm.ZIP.focus();
	   //return false;
   		}      
	if (theForm.Country.value == "")
		{
   	   window.alert("Please enter your Country...");
   	   theForm.Country.focus();
	   return false;
   		}      
	if (theForm.OriginCountry.value == "")
		{
   	   //window.alert("Please enter your Country of Citizenship...");
   	   //theForm.OriginCountry.focus();
	   //return false;
   		}      
	if (theForm.HomePhone.value == "")
		{
   	   //window.alert("Please enter your Primary Phone...");
   	   //theForm.HomePhone.focus();
	   //return false;
   		}      
	if (theForm.Email.value == "")
		{
   	   window.alert("Please enter your Email...");
   	   theForm.Email.focus();
	   return false;
   		}
   	else
   		{
		if (theForm.Email.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1)
	   	   {
	   	   window.alert("Please enter a valid Email...");
   		   theForm.Email.focus();
	   		return false;
   			}
   		}  	
   	      
	if (theForm.User.value == "")
		{
   	   window.alert("Please enter your Username...");
   	   theForm.User.focus();
	   return false;
   		}  
   	else
   		{
   		if ((theForm.User.value.length < 4) || (theForm.User.value.length > 20))
			{
   		   window.alert("Please enter correctly the Username...");
   	   		theForm.User.focus();
		   return false;
   			}  
   		}   
   		
	if (theForm.Password.value == "")
		{
   	   window.alert("Please enter your Password...");
   	   theForm.Password.focus();
	   return false;
   		}
   	else
   		{
   		if ((theForm.Password.value.length < 4) || (theForm.Password.value.length > 20))
			{
   		   window.alert("Please enter correctly the Password...");
   	   		theForm.Password.focus();
		   return false;
   			}  
   		}   
   		      
	if (theForm.RePassword.value == "")
		{
   	   window.alert("Please re-enter your Password...");
   	   theForm.RePassword.focus();
	   return false;
   		}
   	else
   		{
	  	if (theForm.RePassword.value != theForm.Password.value)
			{
	   	    window.alert("Please re-enter your Password correctly...");
   		    theForm.RePassword.focus();
	   		 return false;
			}
   		}
	//if (theForm.Question.value == "")
	//{
   	   //window.alert("Please enter your Secret Question...");
   	   //theForm.Question.focus();
	   //return false;
   	//}      
	//if (theForm.Answer.value == "")
	//{
   	   //window.alert("Please enter your Secret Answer...");
   	   //theForm.Answer.focus();
	   //return false;
   	//}        	      
	return true;



}




//-->
