function handleKeyPress(evnt){
	var retVal = true;
	if (evnt.which == 13)
	{
		var testTarget = new String(evnt.target);
		if ((-1 != testTarget.indexOf("LoginName")) || (-1 != testTarget.indexOf("Password")))
		{
			document.frmLogin.submit();
			retVal = false;
		}
	}
	return retVal;
}
function IEHandleKeyPress(){
	if (event.keyCode == 13)
	{
		document.frmLogin.submit();
		event.returnValue = false;
	}
}


if (navigator.appName != "Microsoft Internet Explorer"){
	window.captureEvents(Event.KEYPRESS);
	window.onKeyPress = handleKeyPress;
}

function StartPopup(image,popupname,width,height) { 
	var remoteWin = null;
	remoteWin = window.open(image, popupname, "width=" + width + ",height=" + height + ",scrollbars=yes,resizable=no");
}
