function SendPassword() { window.status="Login..."; document.form_contents.submit(); } var is_button_in_focus=false; var browser_type=0; var is_submit=0; if (navigator.appName=='Netscape') browser_type=1; if (document.all) browser_type=2; function loaded() { switch(browser_type) { case 1: if (document.form_contents.elements['username']) document.form_contents.elements['username'].focus(); case 2: document.form_contents.all['username'].focus(); } } function keyDown(e) { var button_no; switch(browser_type) { case 1: button_no=e.which; break; case 2: button_no=event.keyCode; break; default: return true; } switch(button_no) { case 13: SendPassword(); return false; default: return true; } } document.onkeydown=keyDown; if (browser_type==1) document.captureEvents(Event.KEYDOWN); //-->