
<!--


function chkEmail(ref1,ref2)
{

  the_obj_name = "window.document.getElementById('" + ref1 + "')";
  //alert(the_obj_name);
  ref1_obj = eval(the_obj_name);
  //alert(the_obj.value);

  the_obj_name = "window.document.getElementById('" + ref2 + "')";
  ref2_obj = eval(the_obj_name);

  if (ref1_obj.value != ref2_obj.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.");
     ref1_obj.focus();
     return 1;
  }

  var pattern = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+\.[a-zA-Z]{3}$/i;

  if ( !pattern.test(ref1_obj.value) )
  {
     alert("You did not enter a valid email address.  Please enter a valid email address.");
     ref1_obj.focus();
     return 1;
  }


  return 0;

}



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;

}



-->



