function getXmlHttpRequest()
{ 	var httpRequest=null;
	try
	{ httpRequest=new ActiveXObject("Msxml2.XMLHTTP"); }
	catch(e)
	{
		try
		{ httpRequest=new ActiveXObject("Microsoft.XMLHTTP"); }
		catch(e)
		{ httpRequest=null; }
	}
	if(!httpRequest&&typeof XMLHttpRequest!="undefined")
	{ httpRequest=new XMLHttpRequest(); }
	return httpRequest;
}

function postURL(url, data, async, stateChangeCallback)
{
	var xmlHttpReq = getXmlHttpRequest();
	if (!xmlHttpReq)
		return;
	xmlHttpReq.open("POST", url, async);
	xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlHttpReq.send(data);	
	xmlHttpReq.onreadystatechange=function()
	{ stateChangeCallback(xmlHttpReq); };
}

function postURLWithCallbackID(id, url, data, async, stateChangeCallback)
{
	var xmlHttpReq = getXmlHttpRequest();
	if (!xmlHttpReq)
		return;
	xmlHttpReq.open("POST", url, async);
	xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlHttpReq.send(data);	
	xmlHttpReq.onreadystatechange=function()
	{ stateChangeCallback(xmlHttpReq, id); };
}

function postURLSingleObj(xmlHttpReq, url, data, async, stateChangeCallback)
{
	if (!xmlHttpReq)
		return;
	xmlHttpReq.open("POST", url, async);
	xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlHttpReq.send(data);	
	xmlHttpReq.onreadystatechange=function()
	{ stateChangeCallback(xmlHttpReq); };
}

function processReqChange(req)
{ 
	if (req.readyState==4||req.readyState=='complete')
	{
		if (req.status==200)
		{ }
	
	}
}
