var HTTPRequest = function (method, url, async) 
{
	var http; 
	
	if (window.XMLHttpRequest) 
	{
		http = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) 
	{
		http= new ActiveXObject('MSXML2.XMLHTTP.3.0');
	}
	
	try{
		http.open(method, url, async);
	}
	catch (e){}
	
	if (method.toUpperCase() == "POST") 
	{
		http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	}
	return http;
}