var xmlhttp1;var frame1;var DoAlert1;var outer1;var xmlCounter=0 function ajax(url,callframe,alertYesNo,outer){ xmlCounter++ if(xmlCounter==1+1) xmlCounter=1 var fUrl=url if(fUrl.indexOf('?')<0) fUrl=fUrl+'?arn='+Math.random() else fUrl=fUrl+'&arn='+Math.random() switch(xmlCounter){ case 1: xmlhttp1=null; frame1=callframe DoAlert1=false outer1=false if(alertYesNo==true) DoAlert1=true if(outer==true) outer1=true tLoc=document.getElementById(frame1) if (window.XMLHttpRequest) xmlhttp1=new XMLHttpRequest(); else if (window.ActiveXObject) xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp1!=null){ xmlhttp1.onreadystatechange=state_Change1; xmlhttp1.open("POST",fUrl,true); xmlhttp1.send(fUrl); }else alert("Your browser does not support XMLHTTP."); break; }} function state_Change1(){ if (xmlhttp1.readyState==4){ if (xmlhttp1.status==200){ if(DoAlert1) alert(xmlhttp1.responseText) else if(document.getElementById(frame1)!=null){ if(outer1){ document.getElementById(frame1).outerHTML=xmlhttp1.responseText }else{ document.getElementById(frame1).innerHTML=xmlhttp1.responseText } } } } }