var xmlHttp var lav function changeprovincia(idpa) { document.getElementById('ciudades').innerHTML="" document.getElementById('ciudades').style.visibility="hidden" xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } document.getElementById('ciudades').innerHTML=" leyendo ..." var url="http://www.asnetservicios.com/cgi-bin/ditgestion/hoteles/rooms.exe/ajaxciudadesprovincia" url=url+"?idpais="+idpa url=url+"&provincia="+document.getElementById('provincia').value url=url+"&sid="+Math.random() xmlHttp.onreadystatechange=stateChangedprovincia xmlHttp.open("GET",url,true) xmlHttp.send(null) } function stateChangedprovincia() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById('ciudades').style.visibility="visible" document.getElementById('ciudades').innerHTML=xmlHttp.responseText } } function GetXmlHttpObject() { var objXMLHttp=null if (window.XMLHttpRequest) { objXMLHttp=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp }