var xmlInfoHttp;
var deleteInfoFileUrl = location.protocol+ "//" +location.host;

function callToDeleteInfoFile(uidPk,path){
	xmlInfoHttp=GetXmlHttpObjectInfo();
	if (xmlInfoHttp==null)
	{
		alert ("Your browser does not support AJAX!");
    	return;
	}
	var url=deleteInfoFileUrl+path+"/delete-info-file.res?infoUidPk=" + uidPk;
	xmlInfoHttp.onreadystatechange=stateChangedofInfo;
	xmlInfoHttp.open("GET",url,true);
	xmlInfoHttp.send(null);
}

function stateChangedofInfo(){
	if (xmlInfoHttp.readyState==4)
	{
		document.getElementById('fillTheUpdateInfoDataWithAjaxCode').innerHTML=xmlInfoHttp.responseText;
		infoSize--;
	}
}

//Check whether the Browser Supports Ajax
function GetXmlHttpObjectInfo(){
	var xmlInfoHttp=null;
	try	{
		// Firefox, Opera 8.0+, Safari
    	xmlInfoHttp=new XMLHttpRequest();
	}catch(e){
    	// Internet Explorer
    	try{
			xmlInfoHttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}catch(e){
			xmlInfoHttp=new ActiveXObject("Microsoft.XMLHTTP");
    	}
	}
	return xmlInfoHttp;
}
