function Validate(theForm) {
   if (Trim(theForm.FirstName.value) == "")
  {
    alert("Please enter First Name.");
    theForm.FirstName.focus();
    return (false);
  }
  if (Trim(theForm.LastName.value) == "")
  {
    alert("Please enter Last Name.");
    theForm.LastName.focus();
    return (false);
  }
  if (Trim(theForm.Zip.value) == "")
  {
    alert("Please enter valid Zip Code.");
    theForm.Zip.focus();
    return (false);
  }
  
  var checkOK = "0123456789()- ";
	var checkStr = theForm.Zip.value;
	var allValid = true;
	for (i = 0;  i < checkStr.length;  i++) {
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
				if (j == checkOK.length) {
					allValid = false;
					break;
				}
	}
	if (!allValid) {
		alert("Please enter only digits for the Zip Code.");
		theForm.Zip.focus();
		return (false);
	}

  if (Trim(theForm.Email.value) == "")
  {
    alert("Please enter your Email Address.");
    theForm.Email.focus();
    return (false);
  }
	var checkStr = theForm.Email.value;
	var ch = checkStr.indexOf('@');

	if (ch==0 || ch==-1) {
		alert("Please enter a valid Email Address.");
		theForm.Email.focus();
		return (false);
	}
	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_'";
	var checkStr = theForm.Email.value;
	var allValid = true;
	for (i = 0;  i < checkStr.length;  i++) {
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
				if (j == checkOK.length) {
					allValid = false;
					break;
				}
	}
	if (!allValid) {
		alert("Please enter only letters, digits and \"@.-_'\" characters in the \"Email\" field.");
		theForm.Email.focus();
		return (false);
	}
	
	//at least one phone number
	if ((Trim(theForm.CellPhone.value) == "")&&(Trim(theForm.HomePhone.value) == ""))
  {
    alert("Please enter at least one Phone Number.");
    theForm.HomePhone.focus();
    return (false);
  } 
	
	
	var checkOK = "0123456789()- ";
	var checkStr = theForm.CellPhone.value;
	var allValid = true;
	for (i = 0;  i < checkStr.length;  i++) {
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
				if (j == checkOK.length) {
					allValid = false;
					break;
				}
	}
	if (!allValid) {
		alert("Please enter only digits for the Cell Number.");
		theForm.CellPhone.focus();
		return (false);
	}
	
	var checkOK = "0123456789()- ";
	var checkStr = theForm.HomePhone.value;
	var allValid = true;
	for (i = 0;  i < checkStr.length;  i++) {
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
				if (j == checkOK.length) {
					allValid = false;
					break;
				}
	}
	if (!allValid) {
		alert("Please enter only digits for the Home Phone Number.");
		theForm.HomePhone.focus();
		return (false);
	}
	
	
		return (true);
}
