function Validate(theForm) {
  if (theForm.name.value == "") {
    alert("Please enter a value for the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }
  if (theForm.name.value.length < 3) {
    alert("Please enter at least 3 characters in the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }
  if (theForm.email.value == "") {
    alert("Please enter a value for the \"E-mail\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length < 7) {
    alert("Please enter at least 7 characters in the \"E-mail\" field.");
    theForm.email.focus();
    return (false);
  }
  var AtSym    = theForm.email.value.indexOf('@')
  var Period   = theForm.email.value.lastIndexOf('.')
  var Space    = theForm.email.value.indexOf(' ')
  var Length   = theForm.email.value.length - 1   // Array is from 0 to length-1
  if ((AtSym < 1) ||                     // '@' cannot be in first position
      (Period <= AtSym+1) ||             // Must be atleast one valid char btwn '@' and '.'
      (Period == Length ) ||             // Must be atleast one valid char after '.'
      (Space  != -1))                    // No empty spaces permitted
  {
    alert("Please enter a valid email address in the \"E-mail\" field.");
    theForm.email.focus();
    return (false);
  }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_.@-";
  var checkStr = theForm.email.value;
  var allValid = true;
  var validGroups = 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 letter, digit and \"_.@-\" characters in the \"E-mail\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.message.value == "") {
    alert("Please enter a value in the \"Questions/Comments\" field.");
    theForm.message.focus();
    return (false);
  }
  return (true);
}