var div="";
function CallAjax(url,location)
{
	//alert(url +'  --->  ' + '('+ location + ')' );
	div=location;
	httpObject = getHTTPObject();

	if (httpObject != null) {


		    
		httpObject.open("GET", url, true);

		httpObject.send(null);

		httpObject.onreadystatechange = drawResult;

	}
}
function drawResult()
{
	if(httpObject.readyState == 4){
			if(httpObject.responseText == 1)
				if(div=="[object HTMLInputElement]")
					{
					
					var Table = div.parentNode.parentNode.parentNode;
					var Rowindex = div.parentNode.parentNode.rowIndex-1;
					Table.deleteRow(Rowindex);

					}
alert(httpObject.responseText);
		document.getElementById(div).innerHTML=httpObject.responseText;

	}
}
function getHTTPObject(){

	if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");

	else if (window.XMLHttpRequest) return new XMLHttpRequest();

	else {

		alert("Your browser does not support AJAX.");

		return null;

	}

}



