function objetoAjaxVisor(){ var xmlhttp=false; try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(E){ xmlhttp = false; } } if(!xmlhttp && typeof XMLHttpRequest!='undefined'){ xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function startvisor(){ theurl='scripts/panelvisor.php?visor=1&da=1268226858c-831348736&paneles=2&id=00&s=00&op=&cver=&t=' + new Date().getTime(); var ajax=objetoAjaxVisor(); ajax.open("GET", theurl, true); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.send(null); ajax.onreadystatechange=function(){ if (ajax.readyState==4){ var resppat=ajax.responseText;//alert(resppat);return false; do { resppat=resppat.replace('&','&'); } while(resppat.indexOf('&') >= 0); document.getElementById('visordiv').innerHTML=resppat; } } } function sendpatr(){ var patridclisel=document.getElementById('patridcli').value; var nwind=window.open('index.php?p='+patridclisel); }