<!--
//JavaScript form validation code
function academicDiscountValidator(theForm) {

  if (theForm.university.value == "")
  {
    alert("Please enter a value for the \"University\" field.");
    theForm.university.focus();
    return (false);
  }

  if (theForm.universityWebSite.value == "")
  {
    alert("Please enter a value for the \"University web site\" field.");
    theForm.universityWebSite.focus();
    return (false);
  }

  if (theForm.deptSize.value == "")
  {
    alert("Please enter a value for the \"Department Size\" field.");
    theForm.deptSize.focus();
    return (false);
  }

  if (theForm.deptSize.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Department Size\" field.");
    theForm.deptSize.focus();
    return (false);
  }

  var checkOK = "0123456789-,";
  var checkStr = theForm.deptSize.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Department Size\" field.");
    theForm.deptSize.focus();
    return (false);
  }

  if (theForm.compSciSize.value == "")
  {
    alert("Please enter a value for the \"Combined Computer Departments Size\" field.");
    theForm.compSciSize.focus();
    return (false);
  }

  if (theForm.compSciSize.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Combined Computer Departments Size\" field.");
    theForm.compSciSize.focus();
    return (false);
  }

  var checkOK = "0123456789-,";
  var checkStr = theForm.compSciSize.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Combined Computer Departments Size\" field.");
    theForm.compSciSize.focus();

    return (false);
  }

  if (theForm.desiredQuantity.value == "")
  {
    alert("Please enter a value for the \"Required Quantity\" field.");
    theForm.desiredQuantity.focus();
    return (false);
  }

  if (theForm.desiredQuantity.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Required Quantity\" field.");
    theForm.desiredQuantity.focus();
    return (false);
  }

  var checkOK = "0123456789-,";
  var checkStr = theForm.desiredQuantity.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  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 (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Required Quantity\" field.");
    theForm.desiredQuantity.focus();
    return (false);
  }

  if (theForm.firstName.value == "")
  {
    alert("Please enter a value for the \"Your first name\" field.");
    theForm.firstName.focus();
    return (false);
  }

  if (theForm.lastName.value == "")
  {
    alert("Please enter a value for the \"Your last name\" field.");
    theForm.lastName.focus();
    return (false);
  }

  if (theForm.emailAddress.value == "")
  {
    alert("Please enter a value for the \"Your email address\" field.");
    theForm.emailAddress.focus();
    return (false);
  }

  if (theForm.address1.value == "")
  {
    alert("Please enter a value for the \"Address 1\" field.");
    theForm.address1.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.state.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.state.focus();
    return (false);
  }

  if (theForm.zip.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Please enter a value for the \"Country\" field.");
    theForm.country.focus();
    return (false);
  }

  if (theForm.odLikes.value == "")
  {
    alert("Please enter a value for the \"OD likes\" field.");
    theForm.odLikes.focus();
    return (false);
  }

  if (theForm.odDislikes.value == "")
  {
    alert("Please enter a value for the \"OD dislikes\" field.");
    theForm.odDislikes.focus();
    return (false);
  }

  if (theForm.capabilities.value == "")
  {
    alert("Please enter a value for the \"UML modeling tool capabilities\" field.");
    theForm.capabilities.focus();
    return (false);
  }

  if (theForm.os.value == "")
  {
    alert("Please enter a value for the \"Operating Systems\" field.");
    theForm.os.focus();
    return (false);
  }

  if (theForm.otherTools.value == "")
  {
    alert("Please enter a value for the \"other modeling tools\" field.");
    theForm.otherTools.focus();
    return (false);
  }
  return (true);
}


function evaluationDownloadValidator(theForm){

  if (theForm.s_FIRSTNAME.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.s_FIRSTNAME.focus();
    return (false);
  }

  if (theForm.s_LASTNAME.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.s_LASTNAME.focus();
    return (false);
  }

  if (theForm.s_LASTNAME.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Last Name\" field.");
    theForm.s_LASTNAME.focus();
    return (false);
  }

  if (theForm.s_EMAIL.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.s_EMAIL.focus();
    return (false);
  }

  if (theForm.s_EMAIL.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email\" field.");
    theForm.s_EMAIL.focus();
    return (false);
  }

  if (theForm.s_ADDRESS_1.value == "")
  {
    alert("Please enter a value for the \"s_ADDRESS_1\" field.");
    theForm.s_ADDRESS_1.focus();
    return (false);
  }

  if (theForm.s_CITY.value == "")
  {
    alert("Please enter a value for the \"s_CITY\" field.");
    theForm.s_CITY.focus();
    return (false);
  }

  if (theForm.s_STATE.value == "")
  {
    alert("Please enter a value for the \"s_STATE\" field.");
    theForm.s_STATE.focus();
    return (false);
  }

  if (theForm.s_ZIP.value == "")
  {
    alert("Please enter a value for the \"s_ZIP\" field.");
    theForm.s_ZIP.focus();
    return (false);
  }

  if (theForm.s_COUNTRY.value == "")
  {
    alert("Please enter a value for the \"s_COUNTRY\" field.");
    theForm.s_COUNTRY.focus();
    return (false);
  }

  if (theForm.s_OS.value == "")
  {
    alert("Please enter a value for the \"Operating Systems\" field.");
    theForm.s_OS.focus();
    return (false);
  }

  if (theForm.s_OS.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Operating Systems\" field.");
    theForm.s_OS.focus();
    return (false);
  }
  return (true);
}

function poRequestValidator(theForm)
{

  if (theForm.s_FIRSTNAME.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.s_FIRSTNAME.focus();
    return (false);
  }

  if (theForm.s_FIRSTNAME.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"First Name\" field.");
    theForm.s_FIRSTNAME.focus();
    return (false);
  }

  if (theForm.s_LASTNAME.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.s_LASTNAME.focus();
    return (false);
  }

  if (theForm.s_LASTNAME.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Last Name\" field.");
    theForm.s_LASTNAME.focus();
    return (false);
  }

  if (theForm.s_LASTNAME.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"Last Name\" field.");
    theForm.s_LASTNAME.focus();
    return (false);
  }

  if (theForm.s_EMAIL.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.s_EMAIL.focus();
    return (false);
  }

  if (theForm.s_EMAIL.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email\" field.");
    theForm.s_EMAIL.focus();
    return (false);
  }

  if (theForm.s_EMAIL.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"Email\" field.");
    theForm.s_EMAIL.focus();
    return (false);
  }

  if (theForm.s_PHONE.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.s_PHONE.focus();
    return (false);
  }

  if (theForm.s_PHONE.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"Phone\" field.");
    theForm.s_PHONE.focus();
    return (false);
  }

  if (theForm.s_ADDRESS_1.value == "")
  {
    alert("Please enter a value for the \"Address 1\" field.");
    theForm.s_ADDRESS_1.focus();
    return (false);
  }

  if (theForm.s_ADDRESS_1.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"Address 1\" field.");
    theForm.s_ADDRESS_1.focus();
    return (false);
  }

  if (theForm.s_CITY.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.s_CITY.focus();
    return (false);
  }

  if (theForm.s_CITY.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"City\" field.");
    theForm.s_CITY.focus();
    return (false);
  }

  if (theForm.s_STATE.value == "")
  {
    alert("Please enter a value for the \"s_STATE\" field.");
    theForm.s_STATE.focus();
    return (false);
  }

  if (theForm.s_ZIP.value == "")
  {
    alert("Please enter a value for the \"s_ZIP\" field.");
    theForm.s_ZIP.focus();
    return (false);
  }

  if (theForm.s_COUNTRY.value == "")
  {
    alert("Please enter a value for the \"s_COUNTRY\" field.");
    theForm.s_COUNTRY.focus();
    return (false);
  }

  return (true);
}

//-->
