function netscapeKeyPress(e) {
     if (e.which == 13) validate();
}

function microsoftKeyPress() {
    if (window.event.keyCode == 13) validate();
}

if (navigator.appName == 'Netscape') {
    window.captureEvents(Event.KEYPRESS);
    window.onKeyPress = netscapeKeyPress;
}
