<!--
var isNav,isIE
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == 'Netscape') {
		isNav = true;
	} 
	else {
		isIE = true;
	}
}

// keypress - function to submit the form when someone clicks the return button
function keypress() {
    if (isNav) { 
		return;//unsupported do nothing
	}
	if ((window.event.srcElement.type == 'text' || window.event.srcElement.type == 'password')  && window.event.keyCode == 13) {
		validate();
	}
    return true;
}

//	=======================================================================
//	validate -- 
//	=======================================================================
function validate() {
	var user = document.frmLogon.txtUSR.value;
	var pass = document.frmLogon.txtPWD.value;
	if (user.length == 0 && pass.length == 0 ) {
		AnonymousUser();
	}
	else {
		document.frmLogon.submit();
		return;
	}
}

//	=======================================================================
//	AnonymousUser -- 
//	=======================================================================
function AnonymousUser() {
	var user = 'ANONYMOUS';
	document.frmLogon.txtUSR.value = user;
	document.frmLogon.txtPWD.value = user;
	validate();
}

//	=======================================================================
//	SetFocus -- 
//	=======================================================================
function SetFocus() {
	document.frmLogon.txtUSR.value = '';
	document.frmLogon.txtPWD.value = '';
	if (genablelogon) {
		document.frmLogon.txtUSR.focus();
	}
}

//-->
