function CheckBrowser(){
	var checkingResult=""
	//check for browser version
	if (window.navigator.appName!="Microsoft Internet Explorer"){
		checkingResult+="<br>- is not <b>Microsoft Internet Explorer</b>, however this site requires to be viewed by Microsoft Internet Explorer"
	}

	// Detect browser version
    if (navigator.appVersion.indexOf("MSIE") != -1) {
        var str_start = parseInt(navigator.appVersion.indexOf("MSIE")) + 5;
        var str_end   = str_start + 3
        var bversion  = navigator.appVersion.substring(str_start,str_end);
		
		if (bversion < 6)
		{
			checkingResult+="<br>- is <b>Version " + bversion + "</b>, however, this site requires Internet Explorer Version 6 and above. Please click <a href=\"http://www.microsoft.com/windows/ie/downloads/default.mspx\">download</a> to download the latest version of MS Internet Explorer."
		}
    }
	
	//check for cookies enabled
	if (window.navigator.cookieEnabled==false){
		checkingResult+="<br>- does not accept <b>Cookies</b>, however, this site requires Cookie support enabled"
	}

	//check for popup enabled
	var win
	if (win=window.open("","win","left=5000,top=5000,height=50,width=50")){
		win.close()
	} else {
		checkingResult+="<br>- has a <b>Pop-up Blocker</b> application running, however, this site requires Pop-up Blocker disabled"
	}
	
	
	if (checkingResult!=""){
		if (document.body.tagName=="BODY"){
			document.body.innerHTML="The System detected that your browser " + checkingResult+"<br><br>Click <a href=\"JavaScript:location.reload()\">Refresh</a> after you have reconfigured the browser settings."
		} else {
			var win = window
			win.document.open()
			win.document.write("The System detected that your browser " + checkingResult+"<br><br>Click <a href=\"JavaScript:location.reload()\">Refresh</a> after you have reconfigured the browser settings.")
			win.document.close()
		}
		return false
	}
}

