function openpasswdwin() 
{
    var winvar = window.open("","CheckPassword","width=300 height=200 location=0 menubar=0 status=0 toolbar=0 scrollbars=0");
    winvar.document.writeln("<html><head><title>Password login</title></head>");
    winvar.document.writeln("<body><center>");
    winvar.document.writeln("<form name=\"theform\"method=POST action=/cgi-bin/chkpasswd.pl>");
    winvar.document.writeln("<b>ID Name</b><input name=\"name\" size=10><p>");
    winvar.document.writeln("<b>Password</b><input type=password name=\"password\" size=10><p>");
    winvar.document.writeln("<input name=\"thebutton\"type=\"submit\" value=\"submit\" onClick=\"document.theform.thebutton.disabled=true;document.theform.submit();\"><p>");
    winvar.document.writeln("</form></center></body></html>");
}