//------------------------------------------------ // getHTTPObject() //------------------------------------------------ function getHTTPObject() { if (typeof XMLHttpRequest != 'undefined') { return new XMLHttpRequest(); } try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { } } return false; } // getCall(param1,valores) // //--------------------------------------------- //-------ATENTION getCall 2.0 with multiple targeting function getCall(param1,valores,target){ multitarget=document.getElementById(target); var checkformstatus=""; var triform=""; if (valores != null){ tryform=document.forms[valores]; if (tryform != null){ alert("found form object "+tryform); alert(tryform+" Should be sent here to parser "); } } var postdata=""; //Use getHTTPObject var http = getHTTPObject(); //If you have values to pass along as POST http.open("POST", param1, true); http.onreadystatechange = function() { var textin=multitarget; //var textin=document.getElementById("centraltag"); if (http.readyState == 4) { //---------------------------------- //THE PAGE IS NOW READY FOR DISPLAY //---------------------------------- var textout = " "+http.responseText; //textout=document.createTextNode(textout); textout=escape(textout); fading(target,textout,0); //textin.innerHTML=textout; // document.write(textout); //alert(textout); }else{ des=http.readyState; var cargando_string="