function Init (frm)
{
	aCampos = Array ("poblacion","hotel");
	aMensajes = Array ("Poblacion","Hotel");
	aTipos = Array (1,1)
	aFormato =  Array (1,1)
}


function validar(frm){
	
	if(( trim(frm.usuario.value) != '') && ( trim(frm.pass.value) != ''))
	{
		frm.action = '/servidor/verificar_login.php';
		frm.submit();
	}
	
}
	

function Cases(){}

function ventana(url,w,h)
{
	window.open(url,'blank','scrollbars=yes,width='+w+',height='+h+',resizable=no,menubar=no,status=no,toolbar=no,location=no');
}

function ventananoscroll(url,w,h)
{
	window.open(url,'blank','scrollbars=no,width='+w+',height='+h+',resizable=yes,left=0,top=0,menubar=no,status=no,toolbar=no,location=no');
}

function ventanaconscrollres(url,w,h)
{
	window.open(url,'blank','scrollbars=yes,width='+w+',height='+h+',resizable=yes,left=0,top=0,menubar=no,status=no,toolbar=no,location=no');
}


function valida(frm)
{
	var p = frm.poblacion.options[frm.poblacion.selectedIndex].value;
	var h = frm.hotel.options[frm.hotel.selectedIndex].value;
	if ((p != '') || (h != ''))
	{
		var url = '/cliente/reserva/propuesta/php/propuesta.php?hotel=' + h + '&idioma=1';
		window.open(url,'blank','scrollbars=yes,width=636,height=440, resizable=no,left=0,top=0,menubar=no, status=yes, toolbar=no,location =no');
	}
	else
	{
		alert("Debe indicar hotel");
	}
}

function enviar_hotel(server,h,langu)
{
	
        if (h != 0)
        {
                var url = 'https://'+server+'/cliente/reserva/propuesta/php/propuesta.php?hotel=' + h + '&idioma=' + langu;
                window.open(url,'blank','scrollbars=yes,width=800,height=460, resizable=no,left=0,top=0,menubar=no, status=yes, toolbar=no,location =no');
        }
        else
        {
              //  alert("Debe indicar hotel");
        }
}


function irpagina(p)
{
	document.forms[0].pagina.value = p;
	document.forms[0].submit();
}
