var xmlhttp=false;
var DataToSend;		//Input Data
var ReturnValue;	//Output Data

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

function XMLSubmit(URL, method)	//Get URL and Form method
{	
	xmlhttp.open(method, URL,true);
	oXMLHTTP.send(DataToSend);				//send the data QueryString
	ReturnValue = oXMLHTTP.responseText;	//Get the response from that page on the Server-Side
	xmlhttp.onreadystatechange=function() 
	{
		if (xmlhttp.readyState==4) 
	  	{
	     	ReturnValue = xmlhttp.responseText
	  	}
	}
	xmlhttp.send(DataToSend)
}























	//XMLHTTP Object
	var oXMLHTTP	=	new ActiveXObject( "Microsoft.XMLHTTP" );

	/*
	_createXMLHttpRequest: function() {
	if (window.XMLHttpRequest) {
	 return new XMLHttpRequest();
	} else if (window.ActiveXObject) {
	 return new ActiveXObject('Microsoft.XMLHTTP')
	} else {
	 _error("Could not create XMLHttpRequest on this browser");
	 return null;
	}
	}
	*/

	var DataToSend;		//Input Data
	var ReturnValue;	//Output Data
 
	//function to submit the information and return the output
	function XMLSubmit(URL, method)	//Get URL and Form method
	{	
		oXMLHTTP.open( method, URL, false );	//async = false because we are checking for that ready status
		oXMLHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded");	//header for form
		oXMLHTTP.send(DataToSend);				//send the data QueryString
		ReturnValue = oXMLHTTP.responseText;	//Get the response from that page on the Server-Side
	}

