function hostnameConformsToStandards() {
	// Test if the web portal hostname conforms to DNS standards, as
	// otherwise the client won't be able to store cookies, session state, etc.
	// See Microsoft Article 316112 for more information on this issue.

	// Check the domain first
	if (document.domain.indexOf("_") >= 0) {
		return false;
	}

    // Check the machine name in the URL second
	var strLocation = document.location.href;
	var arrTokens = strLocation.split("/");
	if (arrTokens.length > 3) {
		var strHostname = arrTokens[2];
		if (strHostname.indexOf("_") >= 0) {
			return false;
		}
	}

	return true;
}

function browserIsIE () {
    // Test if it is MS IE 5.5 or higher
    var strInfo=navigator.userAgent.toLowerCase();
    var strVerLoc = strInfo.indexOf("msie");
    if (strVerLoc >= 0) {
	return true;
    }
    else {
	return false;
    }
}

function browserIsCompatible() {
    // Test if it is MS IE 5.5 or higher
    var strInfo=navigator.userAgent.toLowerCase();
    var strVerLoc = strInfo.indexOf("msie");
    if (strVerLoc >= 0) { 
	var majorVer = strInfo.substr(strVerLoc + 5, 1);
	var minorVer = strInfo.substr(strVerLoc + 7, 1);
	if ((majorVer > 5) || ((majorVer == 5) && (minorVer >= 5))) {
	    return true;
	}
    }
    return false;
}




