var Ajaxs = new Array(); function Ajax(waitId) { var aj = new Object(); aj.waitId = waitId ? $(waitId) : null; aj.targetUrl = ''; aj.sendString = ''; aj.resultHandle = null; aj.loading = 'Loading... '; 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]*?src=\"([^\x00]+?)\"[^\>]*( reload=\"1\")?><\/script>/ig; var arr = new Array(); while(arr = p.exec(s)) appendscript(arr[1], '', arr[2]); p = /]*?( reload=\"1\")?>([^\x00]+?)<\/script>/ig; while(arr = p.exec(s)) appendscript('', arr[2], arr[1]); return s; } function appendscript(src, text, reload) { var id = hash(src + text); if(!reload && in_array(id, evalscripts)) return; if(reload && $(id)) { $(id).parentNode.removeChild($(id)); } evalscripts.push(id); var scriptNode = document.createElement("script"); scriptNode.type = "text/javascript"; scriptNode.id = id; if(src) { scriptNode.src = src; } else if(text){ scriptNode.text = text; } $('append').appendChild(scriptNode); } function hash(string, length) { var length = length ? length : 32; var start = 0; var i = 0; var result = ''; filllen = length - string.length % length; for(i = 0; i < filllen; i++){ string += "0"; } while(start < string.length) { result = stringxor(result, string.substr(start, length)); start += length; } return result; } function stringxor(s1, s2) { var s = ''; var hash = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; var max = Math.max(s1.length, s2.length); for(var i=0; i"); } else { ajaxframe = document.createElement("iframe"); ajaxframe.name = ajaxframeid; ajaxframe.id = ajaxframeid; } ajaxframe.style.display = 'none'; $('append').appendChild(ajaxframe); } $(formid).target = ajaxframeid; ajaxpostHandle = [formid, showid, ajaxframeid, recall]; _attachEvent(ajaxframe, 'load', ajaxpost_load); $(formid).submit(); return false; } function ajaxpost_load() { var s = (is_ie && $(ajaxpostHandle[2])) ? $(ajaxpostHandle[2]).contentWindow.document.XMLDocument.text : $(ajaxpostHandle[2]).contentWindow.document.documentElement.firstChild.nodeValue; evalscript(s); if(s) { $(ajaxpostHandle[1]).innerHTML = s; if(ajaxpostHandle[3]) { eval(ajaxpostHandle[3]); } } }