function init_combo_hoteles(combo_hoteles){
	vaciar_combo(combo_hoteles);
	combo_hoteles.options.length=array_hoteles_sap.length;
	for(i=0;i<array_hoteles_sap.length;i++){
		combo_hoteles.options[i].value=array_hoteles_urls[i];
		nombre_hotel= array_hoteles_nombre[i];
		nombre_hotel = nombre_hotel.replace("H. ","");
		nombre_hotel = nombre_hotel.replace("G. ","G.H. ");
		//combo_hoteles.options[i].text=array_hoteles_urls[i]+" -- "+nombre_hotel;
		combo_hoteles.options[i].text=nombre_hotel;
	}
}

function infoHesperia(donde){
	var pagina=self.location;
	if (donde==1) {
	  v1=window.open("/crm/infohesperia.cfm",'infohesperia','status=no,width=400,height=600,resizable=no,scrollbars=no');
	  v1.focus();
	}
	if (donde==2) {
	  v1=window.open("/crm/enviar.cfm",'infohesperia','status=no,width=400,height=600,resizable=no,scrollbars=no');
	  v1.focus()
	}
}

function centralreservar(){
	var pagina="../" + url_central_reservas;
	window.open(pagina,'Reservas','status=yes,width=638,height=470,resizable=yes,scrollbars=yes');
}

function mgm()
{
var pagina=self.location;
var formulario=document.mgmform;
window.open("/crm/blank.htm",'MGM','status=no,width=325,height=330,resizable=no,scrollbars=no');
formulario.pagina.value=pagina;
formulario.method="post";
formulario.target="MGM";
formulario.action="/crm/mgm.cfm"
formulario.submit();
}

function go_card(obj)
{
	document.formulario_htls.action=url_desde_https+obj.options[obj.selectedIndex].value;
	//s.sendFormEvent("s",window.location.href, "desplegable hotel", obj.options[obj.selectedIndex].value);		
	document.formulario_htls.submit();
}

function abre_ventanas(ancho,alto,nombreventana,pagina,scroll)
{	
	anchoPantalla=(screen.width/2)-(ancho/2)
	altoPantalla=(screen.height/2)-(alto/2)
	eval('window.open(""+pagina+"",""+nombreventana+"","width="+ancho+",height="+alto+",resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",left="+anchoPantalla+",top="+altoPantalla+",noresize")')
}