
function over(texto) { window.status=texto;return true; }
function out()       { window.status='';return true; }



function popup(pagina,size) {
   attr = "toolbars=no,status=no,top=000,left=000," + size;
   window.open(pagina,"",attr);
}



function busca () {

	if ( document.loc.onde[1].checked ) {
		if ( document.loc.cidade.value ) {
			document.loc.path.value = "http://www.eurohoteis.com.br/achei-busca-hoteis-cidades.cfm?texto=" + document.loc.cidade.value
			document.loc.action = "http://www.hoteis.com.br/cgi-hoteis/frame_eurohoteis.cgi"
			document.loc.submit()
		} else if ( document.loc.hotel.value ) {
			document.loc.path.value = "http://www.eurohoteis.com.br/achei-busca-hoteis-hotel.cfm?texto=" + document.loc.hotel.value
			document.loc.action = "http://www.hoteis.com.br/cgi-hoteis/frame_eurohoteis.cgi"
			document.loc.submit()
		} else {
			alert("Informe uma cidade ou o nome do Hotel")
			document.loc.action = "http://www.hotel.com.br/main.htm"
		}
	} else {
		document.loc.action = "http://www.hotel.com.br/cgi-hoteis/busca1.cgi"
		document.loc.submit()
	}

}



function parceiros() {
   pagina = "http://www.hoteis.com.br/parceiros.htm"
   attr   = "toolbars=no,status=no,top=000,left=100,width=490, height=450"
   window.open(pagina,"_blank",attr)
}



function banner_parceiros() {
   var NumPag = 16

   var axel = Math.random() + ""
   var rand1 = axel.charAt(5)
   var rand2 = (axel.charAt(6) == "0") ? "1" : axel.charAt(6)
   var random = rand2 + rand1
   random %= NumPag
   random++

   var href2 = '<img height=80 width=120 border=0 '
   href2 += 'alt="Parceiro" '
   href2 += 'src="http://www.hotel.com.br/banner/parceiro'+ random +'.gif">'

   var href = '<a href="javascript:parceiros()">'

   var str1 = href + href2
   str1 += '</a><br>'

   document.write(str1)
}



function WriteHoje() {
   var hoje      = new Date(); 
   var mes       = hoje.getMonth()
   var diaSemana = hoje.getDay();
   var ano=hoje.getYear();

   switch(mes) {
      case 0:
        mes="Janeiro"
        break;
      case 1:
        mes="Fevereiro";
        break;
      case 2:
        mes="Março";
        break;
      case 3:
        mes="Abril";
        break;
      case 4:
        mes="Maio";
        break;
      case 5:
        mes="Junho";
        break;
      case 6:
        mes="Julho";
        break;
      case 7:
        mes="Agosto";
        break;
      case 8:
        mes="Setembro";
        break;
      case 9:
        mes="Outubro";
        break;
      case 10:
        mes="Novembro";
        break;
      case 11:
        mes="Dezembro";
        break;
   }

   switch(diaSemana) {
      case 0:
        diaSemana="Domingo";
        break;
      case 1:
        diaSemana="Segunda-feira";
        break;
      case 2:
        diaSemana="Terça-feira";
        break;
      case 3:
        diaSemana="Quarta-feira";
        break;
      case 4:
        diaSemana="Quinta-feira";
        break;
      case 5:
        diaSemana="Sexta-feira";
        break;
      case 6:
        diaSemana="Sábado";
        break;
   }

   if(ano<1900) { ano+=1900; }
   var str=diaSemana+", "+hoje.getDate()+" de "+ mes+ " de "+ano; 
   document.write(str) 
}
