AJAX("POST"
,"/shared/ete2/submitschool.asp"
,"xml="+encodeURIComponent(xml.xml),
function(msg){
var f=window.document.frames["bgPage"];
f.document.write("<body>"+msg.xml.toString()+"</body>");
healthCheckNew();
});
function AJAX(type,url,data,callback){
var request = false;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (failed) {
request = false;
}
}
}
if (!request) return;
request.open(type, url, true);
request.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
request.setRequestHeader("Content-Length",data.length);
request.onreadystatechange = function(){
if(request.readyState == 4) {
if(request.status == 200) {
callback(request.responseXML);
}
}
};
request.send(data);
}
,"/shared/ete2/submitschool.asp"
,"xml="+encodeURIComponent(xml.xml),
function(msg){
var f=window.document.frames["bgPage"];
f.document.write("<body>"+msg.xml.toString()+"</body>");
healthCheckNew();
});
function AJAX(type,url,data,callback){
var request = false;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (failed) {
request = false;
}
}
}
if (!request) return;
request.open(type, url, true);
request.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
request.setRequestHeader("Content-Length",data.length);
request.onreadystatechange = function(){
if(request.readyState == 4) {
if(request.status == 200) {
callback(request.responseXML);
}
}
};
request.send(data);
}