function createRequestObject() {
	var to;
	try
	{
		if(window.XMLHttpRequest) ro = new XMLHttpRequest()
		else ro = new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (er)
	{
		alert("Ajax is not available for this browser");
	}
	return ro;
}

var http = createRequestObject();


//this function use update seeting tab in BD
function get_project_amout() {
	//alert("hi==========")
	var no_of_project =  document.getElementById('no_of_project').value;
//alert("locationId"+locationId)
	http.open('get','ajax_project_amount.php?no_of_project='+no_of_project);
	http.onreadystatechange = handleResponse_project_amout;
	http.send(null);
}

function handleResponse_project_amout () {
		if(http.readyState == 4) {
		var response = http.responseText;
	//alert(response);
		//var getAarry = new Array();
		/*getAarry = explode("@",response);*/
		//getAarry = response.split("@");
		//alert(""+getAarry)
		//alert(""+getAarry[0])
		document.getElementById('amt_to_pay').value = response;
		//document.getElementById('fax').value = getAarry[1];
		//document.getElementById('address').value = getAarry[2];
	}
}
