function vtel(id_hotel) { var url=DIR+"/hoteles/scripts/get_user_data.php?id_hotel="+id_hotel; script_hoteles(url,"STEL"); } function vweb(id_hotel) { var url=DIR+"/hoteles/scripts/get_web.php?id_hotel="+id_hotel; script_hoteles(url,"SWEB"); } function script_hoteles(url,tag) { var sc_obj=tag; var obj_head = document.getElementsByTagName("head").item(0); scriptTag = document.getElementById(sc_obj); if(scriptTag!=null) { obj_head.removeChild(scriptTag); delete scriptTag; scriptTag=null; } scriptTag = document.createElement("SCRIPT"); var vch="?"; if (url.indexOf("?")!=-1) vch="&"; scriptTag.src = url+vch+Math.random()*1000000; scriptTag.type = 'text/javascript'; scriptTag.id = sc_obj; obj_head.appendChild(scriptTag); } var id_hotel=0; function set_hotel_id(oCombo) { if (oCombo.getSelectedValue()!=null) { id_hotel=oCombo.getSelectedValue(); } } function set_zona_id_hotel(oCombo) { if (oCombo.value.substr(0,1)=="D") { getObj("id_dep_hotel").value=oCombo.value.substr(1); getObj("id_zona_hotel").value=0; } else { getObj("id_dep_hotel").value=0; getObj("id_zona_hotel").value=oCombo.value; } } function nav_hotel() { if (id_hotel>0) { var url="/hoteles/hoteles_masinfo.php?id="+id_hotel+"&secc=hoteles"; location.href=url; } } function set_param_especiales_hotel(o) { var parametros_especiales_hoteles=getObj("parametros_especiales_hoteles"); if (parametros_especiales_hoteles==null) return; if (o.value==1) { parametros_especiales_hoteles.style.display=""; } else { parametros_especiales_hoteles.style.display="none"; getObj("categoria1").value=0; getObj("categoria2").value=0; r=document.getElementsByName("ord"); r[0].checked=true; r[0].checked=false; } }