function validateEmail(strValue) {
  var objRegExp  = /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
    //check for valid email
  return objRegExp.test(strValue);
}
function MakeRealName() {
   var vFirst, vLast, vRealName;
   vFirst = document.Contact.FirstName.value;
   vLast = document.Contact.LastName.value;
   vRealName = vFirst + " " + vLast;
   document.Contact.realname.value = vRealName;
}
function ValidateMe() {
  var missingstuff = "";
  if (document.Contact.FirstName.value.length < 2) {
    missingstuff += "\n   -  First name";
  }
  if (document.Contact.LastName.value.length < 2) {
    missingstuff += "\n   -  Last name";
  }
  if (document.Contact.City.value.length < 2) {
    missingstuff += "\n   -  City";
  }
  if (document.Contact.State.value.length < 2) {
    missingstuff += "\n   -  State";
  }
  if (!validateEmail(document.Contact.email.value)) {
    missingstuff += "\n   -  Valid E-mail address";
  }
  if (document.Contact.Phone.value.length < 7) {
    missingstuff += "\n   -  Phone number";
  }
  if (document.Contact.Comments.value.length < 2) {
    missingstuff += "\n   -  Comments";
  }
  if (missingstuff != "") {
    missingstuff ="This page is missing the following information:\n" +
    missingstuff + "\n" + "\nPlease fill in this info and submit again.";
    alert(missingstuff);
    return false;
  }
  else {
    return true;
  }
}
