<!--
function isEmail(elm) {
  if (elm.value.indexOf("@") != "-1" &&
      elm.value.indexOf(".") != "-1") {
      return true;
  }
  else {
    return (false);
  }
}

function isInt(elm) {
  if (elm.value == "") {
      return false;
  }
  for (var i = 0; i < elm.value.length; i++) {
      if (elm.value.charAt(i) < "0" || elm.value.charAt(i) > "9") {
          return false;
      }
  }
  return true;
}

function isAlpha(elm) {
  if (elm.value == "") {
      return false;
  }
  for (var i = 0; i < elm.value.length; i++) {
      if ((elm.value.charAt(i) < "a" || elm.value.charAt(i) > "z") &&
         (elm.value.charAt(i) < "A" || elm.value.charAt(i) > "Z")) {
          return false;
      }
  }
  return true;
}

function isPhone(elm) {
  if (elm.value.length != 8) {
      return false;
  }
  for (var i = 0; i < elm.value.length; i++) {
      if ((i > -1 && i < 4) || (i > 4 && i < 8)) {
          if (elm.value.charAt(i) < "0" || elm.value.charAt(i) > "9") {
              return false;
          }
      }
   }
   return true;
}

function validateme(theForm) {

  if (theForm.Name.value == ""){
           alert("Please enter your Name.");
           theForm.Name.focus();
           return (false);  }
  if (isEmail(theForm.Email) == false) {
    alert("Please enter a valid Email, for example: yourname@mail.com.");
    theForm.Email.focus();
    return (false);  }
  if ((theForm.Address.value == "")){
           alert("Please enter your Address.");
           theForm.Address.focus();
           return (false);  }
  if (theForm.Country.value == "Choose your Country"){
           alert("Please select your Country.");
           theForm.Country.focus();
           return (false);  }
  if (isInt(theForm.PostalCode) == false) {
    alert("Please enter a valid Postal Code.");
    theForm.PostalCode.focus();
    return (false);  }
  if (theForm.Telephone.value == "") {
    alert("Please enter a valid Phone Number.");
    theForm.Telephone.focus();
    return (false);  }
  if (theForm.Fax.value == "") {
    alert("Please enter a valid Fax Number.");
    theForm.Fax.focus();
    return (false);  }
  if ((theForm.Comments.value == "")){
           alert("Please enter your Comments.");
           theForm.Comments.focus();
           return (false);  }
  return (true);
}

//-->
