<!-- 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 frmRequestLogin_Validator(theForm)
{
	
  if (theForm.CustID.value == "")
  {
    alert("Please enter a value for the \"Customer Account #\" field.");
    theForm.CustID.focus();
    return (false);
  }

//  if (theForm.CustID.value.length < 6)
//  {
//    alert("The number you entered has too few digits. Please enter your 6- or 7-digit Travers account number in the \"Customer Account #\" field.");
//    theForm.CustID.focus();
//    return (false);
//  }

  if (theForm.CustID.value.length > 7)
  {
    alert("The number you entered has too many digits. Please enter your Travers account number in the \"Customer Account #\" field.");
    theForm.CustID.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);
  }

  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);
  }
  
  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.Password.value == "")
  {
    alert("Please enter your password in the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }

  if (theForm.Password2.value == "")
  {
    alert("Please verify your password in the \"Verify password\" field.");
    theForm.Password2.focus();
    return (false);
  }

// check if both password fields are the same
  if (theForm.Password.value != theForm.Password2.value)
  {
  alert("The two passwords are not the same.");
  theForm.Password2.focus();
   return (false);
 }

  return (true);
}
// End -->
