
function GetAjaxValue(url)
{
    var randomNum = Math.random();
    url = url + "&random=" + randomNum;
    var objXMLHttp;
    if(window.ActiveXObject)
    {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if(window.XMLHttpRequest)
    {
        xmlHttp = new XMLHttpRequest();
    }    
    xmlHttp.Open("POST",url,false);
	xmlHttp.Send(null);
	var returnValue;
	if(xmlHttp.readyState == 4)
	{
	    if(xmlHttp.status == 200)
	    {
	        returnValue = xmlHttp.responseText;
	    }
	    else
	    {
	        returnValue = "Error";
	    }
	}
	else
	{
	    returnValue = "Error";
	}	
	
	return(returnValue);  
}

