	//alert('a');

	
//simple ajax
function ajax_load(url, div_name, querystring, async_bool)
{
	var xmlHttpReq = false;

	var self = new Object;

	var strURL = url;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();

    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }


	self.xmlHttpReq.open('POST', strURL, async_bool);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	if(async_bool == true)
	{
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
  			if(div_name != null)
				document.getElementById(div_name).innerHTML = self.xmlHttpReq.responseText;
    
        }
    }
   	self.xmlHttpReq.send(querystring);

    }
    else //work in sync mode
    {
		self.xmlHttpReq.send(querystring);
    	if(div_name != null)
			document.getElementById(div_name).innerHTML = self.xmlHttpReq.responseText;
		else
			return self.xmlHttpReq.responseText; //rpc 11-13-07 added else return (only works in non async mode
       
    }
    
	
	
}

