
this.popup = new popup();

function popup()
{

    function getPopUpFunction(path)
    {
        
        xmlHttp = getXmlHttpObject();
        xmlHttp.onreadystatechange = getPopUpCallback;
        xmlHttp.open("GET", "/webservices/popup.asmx/GetPopUp?path=" + path, true);
        xmlHttp.send(null);

    }
    
    function getPopUpCallback()
    {
    
        if (xmlHttp.readyState == 4)
        {
               
            if (xmlHttp.status == 200)
            {
               
                document.getElementById("popup").innerHTML = getReturnValue("string");
                document.getElementById("popup").style.display = "inline";
                
            }
               
        }
    
    }
    
    function closePopUpFunction()
    {
        document.getElementById("popup").style.display = "none";
    }
    
    this.getPopUp = getPopUpFunction;
    this.closePopUp = closePopUpFunction;
    
}


