﻿var xmlHttp;
function xmlConn()
{
	try{
		xmlHttp = new ActiveXObject("MSXML2.ServerXMLHTTP");
	}
	catch(e)
	{
		try{ 
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); 
		}
		catch (e) 
		{ 
			try { 
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
			}
			catch (e) 
			{ 
				try { 
					xmlHttp = new XMLHttpRequest(); 
				}
				catch (e) 
				{ 
					xmlHttp = false; 
				}
			}
		}
	}
}
function openHttp(path,method)
{
	if(!xmlHttp)
	{
		xmlConn();
	}
	if(!xmlHttp)
	{
		return false;
	}
	xmlHttp.open("POST",path,method);
	xmlHttp.send(0);
}
