function CreateXMLHttpRequest() {
 try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
 try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
 try { return new XMLHttpRequest(); } catch(e) {}
 alert("XMLHttpRequest not supported");
 return null;
}

function GetRequest(Params) {
 var xhReq = CreateXMLHttpRequest();
 xhReq.open("GET",Params,false);
 xhReq.send(null);
 return xhReq.responseText;
}

function PostRequest(Params,Body) {
 var xhReq = CreateXMLHttpRequest();
 xhReq.open("POST",Params,false);
 xhReq.send(Body);
 return xhReq.responseText;
}

