function IS_Ajax()
	{
  	this.call = function ()
		{
    	var scriptURL = "lib/";
    	var clientFunction = "";
		var sentData =""
    	var result = "";
    	var AJAXRequest;		
    	if(arguments.length<3)
			{
      	alert("[Debug] Only "+arguments.length+" arguments provided(min 3)");
      	return;
    		}
    	scriptURL="../lib/"+arguments[0];    
    	clientFunction=arguments[1];
		sentData=arguments[2];
		tempDiv=arguments[3]; 
		if(tempDiv)
			{
			tdiv=document.getElementById(tempDiv);
			tempContent=tdiv.value;
			tdiv.value='Processing ...';
			}
    	AJAXRequest = false;
    	if (window.XMLHttpRequest)
			{ // Non IE.
       	AJAXRequest = new XMLHttpRequest();
       	if (AJAXRequest.overrideMimeType)
				{
          	AJAXRequest.overrideMimeType('text/xml');
       		}
    		}
		else if (window.ActiveXObject)
			{ // IE
       		try
				{
          	AJAXRequest = new ActiveXObject("Msxml2.XMLHTTP");
       		}
			catch (e)
				{
          		try
					{
            		AJAXRequest = new ActiveXObject("Microsoft.XMLHTTP");
         			}
				catch (e) {}
       			}
    		}
    	if (!AJAXRequest)
			{
       	alert('Unfortunatelly AJAX does not work on your current browser.Please upgrade your browser. ');
       	return false;
    		}
		AJAXRequest.open('POST', scriptURL, true);
		AJAXRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
		AJAXRequest.send(sentData);     
		AJAXRequest.onreadystatechange = function ()
			{
			if (AJAXRequest.readyState == 4)
				{
				if (AJAXRequest.status == 200)
					{
					result = AJAXRequest.responseXML;				
					if(tempDiv)
						{
						tdiv.value=tempContent;
						}
					eval(clientFunction+"(result);"); 						 
           		}
				else
					{
            	alert('There was a problem with the request.'+AJAXRequest.status);
					}
				}
     		 }     
    	}
/*	this.include = function(sFileName)
	{
		var objHead = document.getElementsByTagName('head');
		var objScript = document.createElement('script');
		objScript.type = 'text/javascript';
		objScript.src = 'lib/'+sFileName;
		objHead[0].appendChild(objScript);
	}*/
	}
var ishack_ajax = new IS_Ajax();