<!--

/*
<!--
var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


if (OS == "Mac")
{

	if (browser == "Safari" && version >= 3)
	{
	//document.writeln('<p>Corp Login</p>'); do nothing
	}
	else if (browser == "Netscape Navigator" && version >= 5)
	{
	//window.location="m.php";
	//document.writeln('<p>Corp Login</p>'); do nothing
	}
	else
	{
	window.location="m.php";
	}

}
else if (OS == "Windows")
{

	if (browser == "Internet Explorer" && version >= 6)
	{
	//document.writeln('<p>Corp Login</p>'); do nothing
	}
	else if (browser == "Netscape Navigator" && version >= 5)
	{
	//document.writeln('<p>Corp Login</p>'); do nothing
	}
	else
	{
	window.location="m.php";
	}
	
}
else if (OS == "Linux")
{

	if (browser == "Netscape Navigator" && version >= 5)
	{
	//document.writeln('<p>Corp Login</p>'); do nothing
	}
	else
	{
	window.location="m.php";
	}
	
}
else
{
window.location="m.php";
}

// -->

*/
var isNav4 = false;
var isIE4 = false;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
    isNav4 = ((navigator.appName == "Netscape") &&
   	      (navigator.appVersion.indexOf("Safari") == -1)) ? true : false;
    isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
}
function verifyBrowser() {
    document.loginform.browserjs.value = "true";
    if (isIE4 && navigator.appVersion.indexOf("Macintosh") == -1)
        document.loginform.usingIE.value = "true";
    return true;
}
function myfunction(evt) {
    if (evt.which == 13) {
	return false;
    }
    document.routeEvent(evt);
    return true;
}

if (isNav4) {
    document.captureEvents(Event.KEYUP);
    document.onkeyup = myfunction;
}
function checkError(msg) {
    if (msg && msg != '') {
	var td = document.getElementById('error_td');
	if (td) {
	    td.innerHTML = '&nbsp;&nbsp;' + msg;
	}
    }
}
function onloadwrap() {
    verifyBrowser();
    
    checkError('');
    document.loginform.user.focus();
}
// -->