﻿// JScript File

    var XMLHttpRequestObject = false;
    if( window.XMLHttpRequest ){
        XMLHttpRequestObject = new XMLHttpRequest();
    }else if( window.ActiveXObject )
    {
        XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    function getData(dataSource, divID)
    {
        if( XMLHttpRequestObject){
            var obj = document.getElementById(divID);
            //obj.style.display = "none";
            XMLHttpRequestObject.open("GET", dataSource);
            
            XMLHttpRequestObject.onreadystatechange = function()
            {
                if( XMLHttpRequestObject.readyState == 4 &&
                    XMLHttpRequestObject.status == 200 ){
                        obj.innerHTML = XMLHttpRequestObject.responseText;
                    }
            }
            XMLHttpRequestObject.send(null);
        }
        
    }
    function showDiv( divID )
    {
        if (document.getElementById)
        {
            // this is the way the standards work
            var style2 = document.getElementById(divID).style;
            style2.display = "";
        }
        else if (document.all)
        {
        // this is the way old msie versions work
        var style2 = document.all[divID].style;
            style2.display = "";
        }
        else if (document.layers)
        {
        // this is the way nn4 works
        var style2 = document.layers[divID].style;
            style2.display = "";
        }
    }
    function hideDiv( divID )
    {
        if (document.getElementById)
        {
            // this is the way the standards work
            var style2 = document.getElementById(divID).style;
            style2.display = "none";
        }
        else if (document.all)
        {
        // this is the way old msie versions work
        var style2 = document.all[divID].style;
            style2.display = "none";
        }
        else if (document.layers)
        {
        // this is the way nn4 works
        var style2 = document.layers[divID].style;
            style2.display = "none";
        }
    }    