function Form_Validator_Password(theForm){

if (theForm.New_Password.value != theForm.New_Confirm.value)
    {
      alert("New Password and Confirm New Password do not match.");
      theForm.New_Password.focus();
      return (false);
     } 

return (true);
}

function Form_Validator_Contactus(theForm){
   
if (theForm.name.value == "")
    {
      alert("Name required");
      theForm.name.focus();
      return (false);
     }  
 
if (theForm.phone.value == "")
    {
      alert("Phone Required");
      theForm.phone.focus();
      return (false);
     } 
if (theForm.email.value == "")
    {
      alert("Email required");
      theForm.email.focus();
	  return (false);
  }
if (theForm.comments.value == "")
    {
      alert("Please write your message in the comment box.");
      theForm.comments.focus();
      return (false);
     }
return (true);
}

function Form_Validator_Signup(theForm){

if (theForm.Name.value == "")
    {
      alert("The Name field is required.");
      theForm.Name.focus();
      return (false);
     } 

if (theForm.Company.value == "")
    {
      alert("The Company field is required.");
      theForm.Company.focus();
      return (false);
     } 

if (theForm.Street_Address.value == "")
    {
      alert("The Street Address field is required.");
      theForm.Street_Address.focus();
      return (false);
     } 

if (theForm.City.value == "")
    {
      alert("The City field is required.");
      theForm.City.focus();
      return (false);
     } 

if (theForm.State.value == "State")
    {
      alert("The State field is required.");
      theForm.State.focus();
      return (false);
     } 

if (theForm.Zip.value == "")
    {
      alert("The Zip Code field is required.");
      theForm.Zip.focus();
      return (false);
     } 

if (theForm.Phone.value == "")
    {
      alert("The Phone field is required.");
      theForm.Phone.focus();
      return (false);
     } 

if (theForm.Email.value == "")
    {
      alert("The Email field is required.");
      theForm.Email.focus();
      return (false);
     } 

if (theForm.Username.value == "")
    {
      alert("The Username field is required.");
      theForm.Username.focus();
      return (false);
     } 

if (theForm.Password.value == "")
    {
      alert("The Password field is required.");
      theForm.Password.focus();
      return (false);
     } 

if (theForm.Password.value != theForm.CPassword.value)
    {
      alert("Password and Confirm Password do not match.");
      theForm.New_Password.focus();
      return (false);
     } 

return (true);
}

function Form_Validator_Forgot(theForm){

if (theForm.Username.value == "" && theForm.Email.value == "")
    {
      alert("One field at least is required.");
      theForm.Username.focus();
      return (false);
     } 
return (true);
}