2 function NewHttpReq() {
4 if (typeof XMLHttpRequest != 'undefined') {
5 httpReq = new XMLHttpRequest();
8 httpReq = new ActiveXObject("Msxml2.XMLHTTP.4.0");
11 httpReq = new ActiveXObject("Msxml2.XMLHTTP");
14 httpReq = new ActiveXObject("Microsoft.XMLHTTP");
24 function DoRequest(httpReq,url,param) {
26 // httpReq.open (Method("get","post"), URL(string), Asyncronous(true,false))
27 //popupwin(url+"\n"+param);
28 httpReq.open("POST", url,false);
29 httpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
31 if (httpReq.status == 200) {
32 //popupwin(url+"\n"+param+"\n"+httpReq.responseText);
33 return httpReq.responseText;
35 return httpReq.status;
39 function popupwin(content) {
40 var op = window.open();
41 op.document.open('text/plain');
42 op.document.write(content);