/*	JavaScript Functions for login page	*/

	function keyPress(evt) {
      if(window.event)  // IE
        {
         if (evt.keyCode == 13 ) { submitForm(document.LoginForm, 'Continue'); }
        } 
      else if(evt.which) // Netscape/Firefox/Opera
        {
         if (evt.which == 13) { submitForm(document.LoginForm, 'Continue'); }
        }    
    }
    
    function keyPressUsername(evt) {
      if(window.event)  // IE
        {
         if (evt.keyCode == 13 ) { document.LoginForm.userPassword.focus(); }
        } 
      else if(evt.which) // Netscape/Firefox/Opera
        {
         if (evt.which == 13) { document.LoginForm.userName.focus();  }
        }    
    }
    
    setFocus();
    
    function setFocus()
    {
        try {
            document.LoginForm.userName.focus();
        }
        catch(event){
            setTimeout("setFocus()", 10);
        }
    }
    
    // Special version of submitForm(), to be used when the Enter key is pressed at the password field.
    // If you can figure out how to do onkeypress="doOnEnter(event, submitForm, document.LoginForm, 'Continue');",
    // this function can be removed.  See doOnEnter() and submitForm() in millipore.js.
    function submitFormContinue () {
        return submitForm(document.LoginForm, 'Continue');
    }
