﻿function GetMenu(page)
{
        var xmlHttp;
        try
            {  // Firefox, Opera 8.0+, Safari  
                xmlHttp=new XMLHttpRequest();  
            }
        catch (e)
            {  // Internet Explorer  
                try
                {    
                    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
                }
                catch (e)
                {    
                    try
                    {      
                        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
                    }
                    catch (e)
                    { 
                        return false;      
                    }
                }  
            }
        xmlHttp.onreadystatechange=function()
        {
            if(xmlHttp.readyState==4)
            {
                document.getElementById('change').innerHTML = xmlHttp.responseText;
            }
        }
        //xmlHttp.open("GET",page+"?GUI="+new Date().getTime(),true);
        xmlHttp.open("GET",page,true);
        xmlHttp.send(null);  
}

function ShowExplorer()
{
    window.parent.scrollTo(0,0); 
    
    window.parent.document.getElementById("hideDocument").style.display='block';  
    window.parent.document.getElementById("IframeTemploader").src="Home/Explorer.html";  
    window.parent.document.getElementById("IframeLoader").style.display='block';
    
    window.parent.document.getElementById("IframeLoader").style.left=((screen.width-window.parent.document.getElementById("IframeLoader").offsetWidth)/2)-10;
    window.parent.document.getElementById("IframeLoader").style.top=(screen.height-window.parent.document.getElementById("IframeLoader").offsetHeight)/2;
    
    window.parent.document.getElementById("IframeLoader").style.top=100;
    
    if(window.parent.document.getElementById("IframeLoader").style.top<=30)
    window.parent.document.getElementById("IframeLoader").style.top=30;
    
    window.scrollTo(0,0);  
}   

function CloseExplorer()
{
    window.parent.document.getElementById("hideDocument").style.display='none';  
    window.parent.document.getElementById("IframeLoader").style.display='none';  
} 

function CheckPages()
{
    if(document.getElementById("IframeLoader").style.display=='block')
    CloseExplorer();
}
function ShowMenu(id,yes)
{
if (yes == 'Y')
{
document.getElementById(id).style.display = 'block';
}
else
document.getElementById(id).style.display = 'none'
}