/****************************************************************************** supesite/x-sapce - ajax for ss/xs copyright 2001-2006 comsenz inc. (http://www.comsenz.com|http://www.maifou.net|http://www.yisence.com) *******************************************************************************/ var xml_http_building_link = 'please wait, is to establish a connection...'; var xml_http_sending = 'please wait, is sending data...'; var xml_http_loading = 'please wait, we are receiving data...'; var xml_http_load_failed = 'communication failure, please try again refresh'; var xml_http_data_in_processed = 'communication success, the data being processed...'; function ajax(statusid, recvtype) { var aj = new object(); if(document.getelementbyid(statusid)) { aj.statusid = document.getelementbyid(statusid); } else { var divelement = document.createelement("div"); divelement.classname = "xweb-ajaxmsg"; divelement.style.position = "fixed"; divelement.style.right = "0"; divelement.style.top = "0"; divelement.style.background = "red"; divelement.style.color = "#fff"; divelement.style.lineheight = "2em"; divelement.style.padding = "0 20px"; divelement.id = statusid; document.body.appendchild(divelement); aj.statusid = divelement; } aj.targeturl = ''; aj.sendstring = ''; aj.recvtype = recvtype ? recvtype : 'html';//html xml aj.resulthandle = null; aj.createxmlhttprequest = function() { var request = false; if(window.xmlhttprequest) { request = new xmlhttprequest(); if(request.overridemimetype) { request.overridemimetype('text/xml'); } } else if(window.activexobject) { var versions = ['microsoft.xmlhttp', 'msxml.xmlhttp', 'microsoft.xmlhttp', 'msxml2.xmlhttp.7.0', 'msxml2.xmlhttp.6.0', 'msxml2.xmlhttp.5.0', 'msxml2.xmlhttp.4.0', 'msxml2.xmlhttp.3.0', 'msxml2.xmlhttp']; for(var i=0; i