function Page() 
{

    //Private objects
    var oXmlHttp = null;

    function Initialize() {
        if (window.XMLHttpRequest) {
            oXmlHttp = new XMLHttpRequest();
        }
        else if (window.ActiveXObject) {
            oXmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
        }
        else {
            
        }
    }

    this.Get = function() {

		   Initialize();

		   var url = "pages-internal.php";
		   var params = "regionName=d";
		   		   
		   oXmlHttp.open("POST", url, true);
		   oXmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		   oXmlHttp.setRequestHeader("Content-length", params.length);
		   oXmlHttp.setRequestHeader("Connection", "close");
		   oXmlHttp.onreadystatechange = doReadyStateChange;
		   oXmlHttp.send(params);
    }

	this.Close = function() {

		   Initialize();

		   var url = "pages-internal-close.php";
		   var params = "regionName=d";
		   		   
		   oXmlHttp.open("POST", url, true);
		   oXmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		   oXmlHttp.setRequestHeader("Content-length", params.length);
		   oXmlHttp.setRequestHeader("Connection", "close");
		   oXmlHttp.onreadystatechange = doReadyStateChangeClose;
		   oXmlHttp.send(params);
    }

    // Handles asynchronous request
    function doReadyStateChange() {

        if (oXmlHttp.readyState == 4) {

		    if (oXmlHttp.status == 200) {
                            
				try
				{	
					document.getElementById('responseContent').innerHTML = oXmlHttp.responseText;
				}
				catch(e){}
               
            }
            else {
                
            }
        }
    }

	function doReadyStateChangeClose() {

        if (oXmlHttp.readyState == 4) {

		    if (oXmlHttp.status == 200) {
                                           
            }
            else {
                
            }
        }
    }
}
