


	function makeRequest( url, params, method, sinc, divTarget ) {

		var reqHttpObj = getHTTPObject(); // We create the HTTP Object

		reqHttpObj.open( method, url + params , sinc );

		reqHttpObj.onreadystatechange = function(){

			if (reqHttpObj.readyState == 1){
			document.getElementById( divTarget ).innerHTML = '<img src="loading.gif"> loading...';
			}
			if (reqHttpObj.readyState == 4) {

				// Split the comma delimited response into an array

				//results = http.responseText.split(",");

				if( reqHttpObj.status != 200 )
					document.getElementById( divTarget ).innerHTML = "loading Error.";

				else document.getElementById( divTarget ).innerHTML = reqHttpObj.responseText;

				//document.getElementById( divTarget ).value = results[1];

			}
		}

		reqHttpObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

		reqHttpObj.send(null);
	}



	function getHTTPObject() {

		var xmlHttp;
		
		try{
 			// Firefox, Opera 8.0+, Safari
 			xmlHttp = new XMLHttpRequest();
		 }
		catch (e){
			 //Internet Explorer
			try{
  				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
 			}
 			catch (e){
			  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
 		}
		return xmlHttp;
	}


	/*function getHTTPObject() {

		var xmlhttp;

		if ( !xmlhttp && typeof XMLHttpRequest != 'undefined' ) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}

		return xmlhttp;
	}*/
