	function createRequestObject() {
	
		var req;
	
		if(window.XMLHttpRequest){
			// Firefox, Safari, Opera...
			req = new XMLHttpRequest();
		} else if(window.ActiveXObject) {
			// Internet Explorer 5+
			req = new ActiveXObject("Microsoft.XMLHTTP");
		} else {
			// There is an error creating the object,
			// just as an old browser is being used.
			alert('There was a problem creating the XMLHttpRequest object');
		}
	
		return req;
	
	}
	
	function handleDivTag(divtag) 
	{ 
   		var divtag; 
   		return divtag; 
	} 
	
	// Make the XMLHttpRequest object
	var http = createRequestObject();
	
	// Create the Divtag Handler -- Mainly an IE 6 Fix 
	var divhandler = new handleDivTag(null);

	function sendRequestGet(phpscript,params,divtag) {
	
		// Open PHP script for requests
		http.open('get', phpscript+params);
		http.onreadystatechange = handleResponseGet;
		divhandler.divtag = divtag;
		http.send(null);
	
	}
	
	function sendRequestValue(phpscript,params,divtag) {
	
		// Open PHP script for requests
		http.open('get', phpscript+params);
		http.onreadystatechange = handleResponseValue;
		divhandler.divtag = divtag;
		http.send(null);
	
	}
	
	function sendRequestPost(phpscript,params,divtag) {
	
		// Open PHP script for requests
		http.open('post', phpscript);
		http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		http.onreadystatechange = handleResponsePost;
		divhandler.divtag = divtag;
		http.send(params);
	
	
	}
	
	function handleResponseGet() {
	
		if(http.readyState == 4 && http.status == 200){
	
			// Text returned from PHP script
			var response = http.responseText;
	
			if(response) {
				// Update ajaxTest content
				document.getElementById(divhandler.divtag).innerHTML = response;
			}
	
		}
	}
	
	function handleResponseValue() {
	
		if(http.readyState == 4 && http.status == 200){
	
			// Text returned from PHP script
			var response = http.responseText;
	
			if(response) {
				// Update ajaxTest content
				document.getElementById(divhandler.divtag).value = response;
			}
	
		}
	}
	
	function handleResponsePost() {
	
		if(http.readyState == 4 && http.status == 200){
	
			// Text returned from PHP script
			var response = http.responseText;
	
			if(response) {
				// Update ajaxTest2 content
				document.getElementById(divhandler.divtag).innerHTML = response;
			}
	
		}
	}
