
<!--


function chkEmail(ref1,ref2,formName)
{

  if (window.document.forms[formName].elements[ref1].value !=
      window.document.forms[formName].elements[ref2].value)
  {
     alert("The email addresses you entered do not match.  Please be certain that you enter the same email in both boxes.  I will put the cursor there now.");
     window.document.forms[formName].elements[ref1].focus();
     return true;
  }

  if ( window.document.forms[formName].elements[ref1].value != "")
  {
    var pattern = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/


    if ( !pattern.test(window.document.forms[formName].elements[ref1].value) )
    {
       alert("You did not enter a valid email address.  Please enter a valid email address.");
       window.document.forms[formName].elements[ref1].focus();
       return true;
    }
  }

  return false;

}



function chkDoneText(ref)
{

  the_obj_name = "window.document.getElementById('" + ref + "')";
  //alert(the_obj_name);
  the_obj = eval(the_obj_name);
  //alert(the_obj.value);

  if (!the_obj.value)
  {
     alert("You must enter this information to continue: " + ref + ".  I will put the cursor there now.");
     the_obj.focus();
     return 1;
  }

  return 0;

}

function chkDoneSelect(ref)
{
  the_obj_name = "window.document.getElementById('" + ref + "')";
  the_obj_name += ".options[" + the_obj_name + ".selectedIndex].value";
  //alert(the_obj_name);
  the_obj = eval(the_obj_name);
  //alert(the_obj);

  if (the_obj == "0000")
  {
     alert("You must enter this information to continue: " + ref + ".  I will put the cursor there now.");
     the_obj_name = "window.document.getElementById('" + ref + "')";
     the_obj = eval(the_obj_name);
     the_obj.focus();
     return 1;
  }

  return 0;

}



-->


