<!-- Begin 
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,left=50,top=50,width=350,height=400');");
}

function frmRequestCatalog_Validator(theForm)
{

// if (theForm.KeyCode.value.length > 6)
//  {
//    alert("Please enter 5 or 6 characters in the \"Keycode\" field.");
//    theForm.KeyCode.focus();
//    return (false);
//  }

//  if (theForm.KeyCode.value.length < 5)
//  {
//    alert("Please enter 5 or 6 characters in the \"Keycode\" field.");
//    theForm.KeyCode.focus();
//    return (false);
//  } 

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄSÿÎZÿsÿÏzÿÙËçåÌ€®‚éƒæèíêëì<ETH>„ñîïÍ…¯ôòó†Y«<THORN>§ˆ‡‰‹ŠŒ¾Ž‘“’”•<eth>–˜—™›š¿œžŸy«<thorn> \t\r\n\f";
  var checkStr = theForm.FirstName.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 letter and whitespace characters in the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length < 2)
  {
    alert("Please enter at least 3 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄSÿÎZÿsÿÏzÿÙËçåÌ€®‚éƒæèíêëì<ETH>„ñîïÍ…¯ôòó†Y«<THORN>§ˆ‡‰‹ŠŒ¾Ž‘“’”•<eth>–˜—™›š¿œžŸy«<thorn> \t\r\n\f";
  var checkStr = theForm.LastName.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 letter and whitespace characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.department.value == "")
  {
    alert("Please select a department from the \"department\" menu.");
    theForm.department.focus();
    return (false);
  }

  if (theForm.sic.value == "")
  {
    alert("Please select an industry from the \"your industry\" menu.");
    theForm.sic.focus();
    return (false);
  }

  if (theForm.EmplCnt.value == "")
  {
    alert("Please enter the number of employees in the \"Number of employees at your location?\" field.");
    theForm.EmplCnt.focus();
    return (false);
  }

  if (theForm.address1.value == "")
  {
    alert("Please enter your address in the \"address1\" field.");
    theForm.address1.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Please enter your city in the \"city\" field.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.state.value == "")
  {
    alert("Please select a value for the \"State\" field.");
    theForm.state.focus();
    return (false);
  }

  if (theForm.zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.zip.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"Zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.zip.value.length > 11)
  {
    alert("Please enter at most 11 characters in the \"Zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄSÿÎZÿsÿÏzÿÙËçåÌ€®‚éƒæèíêëì<ETH>„ñîïÍ…¯ôòó†Y«<THORN>§ˆ‡‰‹ŠŒ¾Ž‘“’”•<eth>–˜—™›š¿œžŸy«<thorn>0123456789-- \t\r\n\f";
  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 letter, digit, whitespace and \"-\" characters in the \"Zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Please select your country from the \"country\" menu.");
    theForm.country.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Please enter your phone # in the \"phone #\" field.");
    theForm.phone.focus();
    return (false);
  }

//  if (theForm.email.value == "")
//  {
//    alert("Please enter your email address in the \"email address\" field.");
//    theForm.email.focus();
//    return (false);
//  }

//  if (theForm.email2.value == "")
//  {
//    alert("Please enter your email address in the \"verify email address\" field.");
//    theForm.email2.focus();
//    return (false);
//  }

  // check if both email address fields are the same
//  if (theForm.email.value != theForm.email2.value)
//  {
	//  alert("The two email addresses are not the same.");
	//  theForm.email2.focus();
	//   return (false);
  // }

  if (theForm.referral.value == "")
  {
    alert("Please select the method you located Travers from the \"How did you learn about Travers?\" menu.");
    theForm.referral.focus();
    return (false);
  }

  return (true);
}
// End -->
