<!--

function redirect(theSelection)
{
  var i = theSelection.selectedIndex;

  theSelection.selectedIndex = 0;
  theSelection.blur();
  if (i != 0)
      window.location = theSelection.options[i].value;
}


function check_email_field(theForm)
{
  if (check_email(theForm.email.value) == false) {
      theForm.email.focus();
      return (false);
  }
  return(true);
}


function check_email(email)
{
  var i = 0;
  var at_OK = -1;
  var point_OK = -1;
  var message = "please enter a valid email address - ";
  var badChars = " ~!#$%^&*()+=|\\{}[]:;\"\',<>?/"

  if (email.length < 5) {
      alert(message + "( too short )");
      return(false);
  }
  for (i=0 ; i < email.length ; i++) {
       if (email.charAt(i) == '@') {
           if (at_OK >= 0) {
               alert(message + "( multiple \'@\' characters )");
               return (false);
           }
           at_OK = i;
       }
       else
       if (email.charAt(i) == '.') {
           point_OK = i;
       }
       else
       if (badChars.indexOf(email.charAt(i)) != -1) {
           alert(message + "( invalid character \'" + email.charAt(i) +"\' )");
           return (false);
       }
  }
  if (at_OK == -1 || point_OK == -1) {
      alert(message + "( \'@\' or \'.\' missing )");
      return (false);
  }
  if (at_OK == 0 || at_OK == i-1 || point_OK == 0 || point_OK == i-1) {
      alert(message + "( \'@\' or \'.\' is first or last character )");
      return (false);
  }
  if (point_OK <= at_OK + 1) {
      alert(message + "( \'@\' must be before \'.\' )");
      return (false);
  }
  return (true);
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

-->