
//Michelle D Nguyen 11/27/2000
//Make the 'enter' button works in Netscape

        var isNetscape = false;
        var isIE = false;
        var isWhoKnows = false;
        
        if (parseInt(navigator.appVersion) >= 4) {
                if(navigator.appName == "Netscape") {
                  isNetscape = true;
                }else if (navigator.appName == "Microsoft Internet Explorer"){
                  isIE = true;
                }else {
                  isWhoKnows = true;
                }
        }
        
        if(isNetscape) {
                document.captureEvents(Event.KEYUP);
        }
        document.onkeyup = checkValue

        function checkValue(evt){
            var theButtonPressed;
            if (isNetscape) {
                if(evt.target.name == "password"){
                   theButtonPressed = evt.which;
                }
						}else if(isIE) {
                if (window.event.srcElement.type == "password") {
                    theButtonPressed = window.event.keyCode;
                }
                }else if(isWhoKnows) {
                    alert("Please hit the submit button to process form");
                }
                
                if (theButtonPressed == 13) {
                    document.form1.submit();
                }
        }
        

