<!------- hide the script from old browsers
required1 = Array(
    "name",
    "password"
  );
  // required_text - printed in alert (instead of field name)
  required_text1 = Array(
    "your name",
    "your password"
  );
 
  required2 = Array(
    "name",
    "email"
  );
  // required_text - printed in alert (instead of field name)
  required_text2 = Array(
    "your name",
    "your email address"
  );
 
  required3 = Array(
    "name",
    "password", 
    "new_password"
  );
  // required_text - printed in alert (instead of field name)
  required_text3 = Array(
    "your name",
    "your old password",
    "your new password" 
  );

txt = new Array();
txt['login'] = "<FORM METHOD='POST' NAME='edit' ACTION='/cgi-bin/reu_myreu.pl' onSubmit='return check_required(this,required1,required_text1);'>\n<INPUT TYPE='hidden' NAME='what' VALUE='edit'>\n<TABLE BORDER='0' CELLPADDING='2' CELLSPACING='0' WIDTH='353'>\n<TR>\n<TD COLSPAN='2' ALIGN='LEFT' VALIGN='TOP'>\n<H3>\nLogin\n</H3>\n<P>\n</P>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nName<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='TEXT' NAME='name' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nPassword<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='PASSWORD' NAME='password' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP WIDTH='15%'>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP COLSPAN='2'>\n<INPUT TYPE=SUBMIT VALUE='Continue'>&nbsp;&nbsp; \n<INPUT TYPE=RESET VALUE='Clear Entries'>&nbsp;&nbsp;<BR>\n</TD>\n</TR>\n</TABLE>\n</FORM>\n";
// replace txt['login'] with txt['login_orig'] (i.e., rename both array entries) to
// allow individual students to change password or have it sent if forgotten
txt['login_orig'] = "<FORM METHOD='POST' NAME='edit' ACTION='/cgi-bin/reu_myreu.pl' onSubmit='return check_required(this,required1,required_text1);'>\n<INPUT TYPE='hidden' NAME='what' VALUE='edit'>\n<TABLE BORDER='0' CELLPADDING='2' CELLSPACING='0' WIDTH='353'>\n<TR>\n<TD COLSPAN='2' ALIGN='LEFT' VALIGN='TOP'>\n<H3>\nLogin\n</H3>\n<P>\n</P>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nName<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='TEXT' NAME='name' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nPassword<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='PASSWORD' NAME='password' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP WIDTH='15%'>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP COLSPAN='2'>\n<INPUT TYPE=SUBMIT VALUE='Continue'>&nbsp;&nbsp; \n<INPUT TYPE=RESET VALUE='Clear Entries'>&nbsp;&nbsp;<BR>\n</TD>\n</TR>\n</TABLE>\n<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='6' WIDTH='353'>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','forgot');return false\">Forgot your password?</A>\n</TD>\n<TD ALIGN='RIGHT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','change');return false\">Change your password</A>\n</TD>\n</TR>\n</TABLE>\n</FORM>\n";
txt['forgot'] = "<FORM METHOD='POST' NAME='forgot' ACTION='/cgi-bin/reu_myreu.pl' onSubmit='return check_required(this,required2,required_text2);'>\n<INPUT TYPE='hidden' NAME='what' VALUE='forgot'>\n<TABLE BORDER='0' CELLPADDING='2' CELLSPACING='0' WIDTH='353'>\n<TR>\n<TD COLSPAN=4 ALIGN='LEFT' VALIGN='TOP'>\n<H3>\nForgot Your Password?\n</H3>\n<P>\nPlease fill out and submit the following form to have your password sent to you by email:\n</P>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nName<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' >\n<INPUT TYPE='TEXT' NAME='name' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nEmail<BR>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' >\n<INPUT TYPE='TEXT' NAME='email' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP WIDTH='15%'>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP COLSPAN='change'>\n<INPUT TYPE=SUBMIT VALUE='Continue'>&nbsp;&nbsp; \n<INPUT TYPE=RESET VALUE='Clear Entries'>&nbsp;&nbsp;<BR>\n</TD>\n</TR>\n</TABLE>\n<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='6' WIDTH='353'>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','login');return false\">Login</A>\n</TD>\n<TD ALIGN='RIGHT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','change');return false\">Change your password</A>\n</TD>\n</TR>\n</TABLE>\n</FORM>\n";
txt['change'] = "<FORM METHOD='POST' NAME='edit' ACTION='/cgi-bin/reu_myreu.pl' onSubmit='return check_required(this,required3,required_text3);'>\n<INPUT TYPE='hidden' NAME='what' VALUE='change'>\n<TABLE BORDER='0' CELLPADDING='2' CELLSPACING='0' WIDTH='353'>\n<TR>\n<TD COLSPAN=4 ALIGN='LEFT' VALIGN='TOP'>\n<H3>\nChange Your Password\n</H3>\n<P>\nPlease submit the following form to change your password:\n</P>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nName\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='TEXT' NAME='name' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nOld Password\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='PASSWORD' NAME='password' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\nNew Password\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<INPUT TYPE='PASSWORD' NAME='new_password' SIZE='30'>\n</TD>\n</TR>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP WIDTH='15%'>\n</TD>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP COLSPAN=2>\n<INPUT TYPE=SUBMIT VALUE='Continue'>&nbsp;&nbsp; \n<INPUT TYPE=RESET VALUE='Clear Entries'>&nbsp;&nbsp;\n<BR>\n</TD>\n</TR>\n</TABLE>\n<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='6' WIDTH='353'>\n<TR>\n<TD ALIGN='LEFT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','login');return false\">Login</A>\n</TD>\n<TD ALIGN='RIGHT' VALIGN='TOP' NOWRAP>\n<A HREF='#' onClick=\"show_form('this_form','txt','forgot');return false\">Forgot your password?</A>\n</TD>\n</TR>\n</TABLE>\n</FORM>\n";

function show_form(form,this_txt,id) {
  // show appropriate form
  ChangeText(form,this_txt,id);
  // clear message below form
  ChangeText('this_msg',"<BR>");
}

//end -->


