var REQ; // Ajax Variable
function newXMLHttpRequest()
{
	var xmlreq = false;
	if (window.XMLHttpRequest)
	{
		xmlreq = new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		try
		{
			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e1)
		{
			try
			{
				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e2)
			{

			}
		}
	}
	return xmlreq;
}

function sendRequest(callback, data, method, async, url){
	REQ	= newXMLHttpRequest();
	REQ.onreadystatechange = function(){
		if (REQ.readyState == 4){
			if (REQ.status == 200){
			    callback();

			}else{
			    window.alert("There was a problem retrieving the XML data:\n" + REQ.statusText);
			}
		}
	}

	var conType = "application/x-www-form-urlencoded; charset=UTF-8";


	REQ.open(method, url, async);
	REQ.setRequestHeader("Content-Type", conType);
	REQ.send(data);
}

function real_result(){

}
