<!-- Begin Mailing List Code
function win() {
window.open("updates.cgi","","height=300,width=575,left=30,top=10", "poppage", "toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0");
}
// End Mailing List Code -->

function validateupdate( f )
{
  a1 = f.pemail.value.indexOf("@");
  a2 = f.pemail2.value.indexOf("@");

  if(f.pname.value.length < 2)
  {
    alert("Please enter a name");
    f.pname.focus();
    return(false);
  }else if(f.pemail.value.length < 7 || a1 == -1)
  {
    alert("Please enter a valid email address");
    f.pemail.focus();
    return(false);
  }else if(f.pemail2.value.length < 7 || a2 == -1)
  {
    alert("Please enter a valid confirmation email address");
    f.pemail2.focus();
    return(false);
  }else if(f.pemail.value != f.pemail2.value)
  {
    alert("Email addresses must match");
    f.pemail.focus();
    return(false);
  }
}
