var xmlHttp = false;

function makeAjaxPOSTRequest(url,args,callback)
{
    	xmlHttp = false;
    	try {
    		xmlHttp = new XMLHttpRequest();
    	} catch (trymicrosoft) {
    		try {
    			xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
    		} catch (othermicrosoft) {
    			try {
    				xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
    			} catch (failed) {
    				xmlHttp = false;
    			}
    		}
    	} 

	xmlHttp.onreadystatechange = callback;
	xmlHttp.open('POST', url, true);	
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", args.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(args);
	return xmlHttp;
}

function makeAjaxRequest(url,callback)
{
    	xmlHttp = false;
    	try {
    		xmlHttp = new XMLHttpRequest();
    	} catch (trymicrosoft) {
    		try {
    			xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
    		} catch (othermicrosoft) {
    			try {
    				xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
    			} catch (failed) {
    				xmlHttp = false;
    			}
    		}
    	} 

	xmlHttp.onreadystatechange = callback;
	xmlHttp.open('GET', url, true);	
	xmlHttp.send(null);
}
