function detectBrowser() {  var a = navigator.userAgent; var b = navigator.appVersion;var BrowserWarning = document.getElementById("browserWarning"); if(BrowserWarning != null) {if (a.match("Firefox/2.") == null && a.match("Firefox/3.") == null && a.match("Firefox/3.5") == null && a.match("Chrome/3.0.195") == null && a.match("Safari/530.") == null && a.match("MSIE 6.") == null && a.match("MSIE 7.") == null  && a.match("MSIE 8.") == null) {  BrowserWarning.style.display = "" } else { BrowserWarning.style.display = "none" }} } function hideStatusOnLinkClick() { window.status = "" } function hidestatus() { window.status = ""; return true } if (document.layers) { document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) } document.onmouseover = hidestatus; document.onmouseout = hidestatus; document.onclick = hideStatusOnLinkClick;
detectBrowser();
var resultText = ""; var xmlHttp; var strVal
var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0; var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5") != -1) ? 1 : 0; var is_opera = ((navigator.userAgent.indexOf("Opera6") != -1) || (navigator.userAgent.indexOf("Opera/6") != -1)) ? 1 : 0; var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0; function AsyncPost_Data(requestURL, queryString, callBackMethod)
{ xmlHttp = GetXmlHttpObject(callBackMethod); AsyncXmlHttp_Get(xmlHttp, requestURL, queryString); return resultText; }
function Post_Data(requestURL, queryString)
{  xmlHttp = GetXmlHttpObject(stateChangeHandler); xmlHttp_Get(xmlHttp, requestURL, queryString); return resultText; }
function stateChangeHandler() {
    if (xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete')
    { resultText = xmlHttp.responseText; } 
}
function xmlHttp_Get(xmlhttp, url, queryString)
{  xmlhttp.open('POST', url, false);  xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send(queryString); }
function AsyncXmlHttp_Get(xmlhttp, url, queryString)
{ xmlhttp.open('GET', url + "?" + queryString, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send(null); }
function GetXmlHttpObject(handler)
{
    var objXmlHttp = null; if (is_ie)
    {
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP'; try
{ objXmlHttp = new ActiveXObject(strObjName); objXmlHttp.onreadystatechange = handler; }
        catch (e)
{ alert('IE detected, but object could not be created. Verify that active scripting and activeX controls are enabled'); return; }
    }
    else if (is_opera)
    { alert('Opera detected. The page may not behave as expected.'); return; }
    else
    { objXmlHttp = new XMLHttpRequest(); objXmlHttp.onload = handler; objXmlHttp.onerror = handler; }
    return objXmlHttp;
}



