// JavaScript Document
 var httpRequest;
  function createXMLHttpRequest() {
  	var ua;
    
  	if(window.XMLHttpRequest) {
   		try{
			ua = new XMLHttpRequest();
   		} catch(e) {
  			ua = false;
   		}
   } else if(window.ActiveXObject) {
   		try {
   		ua = new ActiveXObject("Microsoft.XMLHTTP");
   		} catch(e) {
   		ua = false;
   		}
    }
   return ua;
 }

/****************************************************************************/
   function sendRequest(sendingMethod,url,receiverFunction,postVars) {
//	   alert(receiverFunction);
	httpRequest.open(sendingMethod, url,true);
  	httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
   	httpRequest.onreadystatechange = receiverFunction;
   	if(postVars){
		httpRequest.send(postVars);
	}else{
		httpRequest.send(null);
	}
   }
 /******************************************************************************/  
   
     
 

