// JavaScript Document
var divid="";
function CreateXmlHttp()
{
    //Creating object of XMLHTTP in IE
    try
    {
        XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    {
        try
        {
            XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e)
        {
            XmlHttp = null;
        }
    }
    //Creating object of XMLHTTP in Mozilla and Safari
    if(!XmlHttp && typeof XMLHttpRequest != "undefined")
    {
        XmlHttp = new XMLHttpRequest();
    }
}

function HandleResponse()
{	
    if(XmlHttp.readyState == 4)
    {  
        if(XmlHttp.status == 200)
        {  
			//alert(XmlHttp.responseText);
            document.getElementById(divid).innerHTML=XmlHttp.responseText
        }
        else
        {
            alert("There was a problem retrieving data from the server." );
        }
    }
}
function HandleResponse2()
{	
    if(XmlHttp.readyState == 4)
    {
        if(XmlHttp.status == 200)
        {  //alert(divid);
            document.getElementById(divid).innerHTML=XmlHttp.responseText
        }
        else
        {
            alert("There was a problem retrieving data from the server." );
        }
    }
}
