
// Check that email is entered twice
function checkEmail(form) {
email1 = form.email.value;
email2 = form.email_confirm.value;

if (email1 != email2) {
alert ("\nYou did not enter the same email addresss twice. Please re-enter your email address.")
return false;
}
else return true;
}

// Check that password is entered twice
function checkPw(form) {
pw1 = form.pw1.value;
pw2 = form.pw2.value;

if (pw1 != pw2) {
alert ("\nYou did not enter the same new password twice. Please re-enter your password.")
return false;
}
else return true;
}
// JavaScript Pop Open Document
 function popup_window(url,w,h)
 {
  var width=w;
  var height=h;
  var from_top=15;
  var from_left=15;
  var toolbar='no';
  var location='no';
  var directories='no';
  var status='no';
  var menubar='no';
  var scrollbars='no';
  var resizable='no';
  var atts='width='+width+'show,height='+height+',top='+from_top+',screenY=';
  atts+= from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;
  atts+=',location='+location+',directories='+directories+',status='+status;
  atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
  window.open(url,'win_name',atts);
 }


