﻿// JScript File


function updateReport(siteId, type)
{
    var location = "Default.aspx";
    var xmlHttp;
    var pass
    try
    {
       xmlHttp=new XMLHttpRequest();
    }
    catch(e)
    {
        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)
        {
        }
    }
    xmlHttp.open("GET",location + "?SiteId=" + siteId + "&Type=" + type,true);
    xmlHttp.send(null); 
}
