<!--
////Mensagem Status
function Msg(msgStr)  { //v3.0
	status=msgStr; document.Msg_returnValue = true;
}
//NAVEGAÇÃO
function rs()
{
if (parent.window.screen) {
var aw = screen.availWidth;
var ah = screen.availHeight;
parent.window.moveTo(0, 0);
parent.window.resizeTo(aw, ah);}
}
function gothere(mname)
{
var thisform = mname
 if (thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value != "nolink") location.href=thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value
}
// FUNÇÃO PARA EVITAR ERROS DE SCRIPT;
  function stopError() {
   return true;
}
  window.onerror = stopError;

// FUNÇÃO PARA CHAMAR UMA NOVA JANELA;

  function openWindow(jan) { 
   window.open(jan,"window",'width=340,height=240,top=50,left=50,scrollbars=no,scrollbars=no,status=no');

}
// FUNÇÃO PARA ADICIONAR AOS FAVORITOS;

  function Favoritos(Url,Tit) {
   window.external.AddFavorite(Url,Tit);
}

//FUNÇÃO IMAGEM

	function Img(img,pos) {
         document.images[pos].src = img + '.jpg';}

//Função Transparencia efeito Imagem
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }

    clearTimeout(nereidFadeTimers[object.sourceIndex]);

    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}


// FUNÇÃO PARA ABRIR UMA NOVA JANELA;

function Nova_Janela7() {
   window.open('autori.htm','janela','toolbar=0,location=0,scroll=no,width=350,height=330,top=80,left=100,resizable=0');}

function Nova_Janela6() {
   window.open('autori.htm','janela','toolbar=0,location=0,scroll=no,width=350,height=130,top=80,left=100,resizable=0');}

function Nova_Janela5() {
   window.open('sessao.htm','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}

function Nova_Janela4() {
   window.open('anuncio.htm','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}

function Nova_Janela3() {
   window.open('mapa.htm','janela','toolbar=0,location=0,scroll=no,width=470,height=400,top=10,left=100,resizable=0');}

function Nova_Janela2() {
   window.open('cont.asp','janela','toolbar=0,location=0,scroll=no,width=550,height=350,top=80,left=100,resizable=0');}

function Nova_Janela1() {
   window.open('aprova.asp','janela','toolbar=0,location=0,scroll=no,width=600,height=350,top=80,left=100,resizable=0');}

function Nova_Janela() {
   window.open('tab_anu.asp','janela','toolbar=0,location=0,scroll=no,width=300,height=280,top=80,left=100,resizable=0');}

// SCRIPT MENU;
  function Over(Obj,Txt,Descr,Img,Link) {
   Obj.style.cursor = 'hand';
   Obj.style.border = '1 solid #000000';
   Obj.style.background = '#F0F0F0';
   Obj.title = Descr;
//   Img.style.display = '';
   Link.style.color = '#00008B';
   window.status = Txt;

}

  function Out(Obj,Img,Link) {
   Obj.style.cursor = 'default';
   Obj.style.border = 'rgb(200,204,51)';
   Obj.style.background = 'rgb(153,204,51)';
//   Img.style.display = 'none';
   Link.style.color = '#000000';
   window.status = '';

}

  function Des(Tp,Url) {
   if (Tp == 'l') {
       if (Url == '') {
           return false;}
       else {
           Url += '.html';
           window.open(Url,'p');}}
   else if (Tp == 'e') {
            if (Url == '') {
                return false;}
            else {
                window.location = Url;}}
   else if (Tp == 'i') {
            Imprimir(Url);}
   else if (Tp == 'f') {
            if (Url == '0') {
                Favoritos('http://','Pousada Rêmora');}}
}

// FUNÇÃO DO MENU COMBO;

  function Combo_URL() {
   var URL = document.frmCombo.cmbURL.options[document.frmCombo.cmbURL.selectedIndex].value;
   if (URL == '0') {
       return false;}
   else {
   window.open(URL,'me');
   frmCombo.cmbURL.selectedIndex = 0;}
}

// FUNÇÃO PARA IMPRIMIR UM DOCUMENTO;

  function Imprimir(Alvo) {
   window.parent.Alvo.focus();
   window.parent.Alvo.print();
}
//FUNÇÃo DETALHES

	function new_detalhe(url) {
		 var win = null;
		 win = window.open(url,'_new','width=660,height=520,left=50,top=0,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}

//FUNÇÃo DETALHES

	function detalhe(url) {
		 var win = null;
		 win = window.open(url,'_new','width=780,height=580,left=50,top=0,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}

//FUNÇÃO SEJA CRIATIVO
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert("ops");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("ops");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;



//FUNÇÃO JANELA NOVA

	function Img(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scroll=no,width=640,height=480,top=10,left=50,resizable=0');}

	function Janela1(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scroll=no,width=650,height=480,top=10,left=50,resizable=0');}

	function Janela2(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=480,height=400,top=10,left=150,resizable=0');}

	function Janela3(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=500,height=350,top=10,left=150,resizable=0');}

	function Janela4(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=no,width=500,height=300,top=10,left=150,resizable=0');}
	
	function Janela5(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=no,width=740,height=520,top=10,left=50,resizable=0');}

	function Janela6(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=no,width=200,height=150,top=10,left=50,resizable=0');}

	function Janela7(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=no,width=400,height=520,top=10,left=50,resizable=0');}


//FUNÇÃO JANELA POP

   function Max() {
   window.open('anuncio.asp','win','width=500,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

// FUNÇÃO VALIDANDO O FORMULÁRIO;

function Validator(txt)

{



  if (txt.Nome.value == "")

  {

    alert("Digite um valor para o campo \"Nome\".");

    txt.Nome.focus();

    return (false);

  }



  if (txt.Nome.value.length < 1)

  {

    alert("Digite pelo menos 1 caracteres no campo \"Nome\".");

    Form.Nome.focus();

    return (false);

  }



  if (Form.Nome.value.length > 50)

  {

    alert("Digite no máximo 50 caracteres no campo \"Nome\".");

    Form.Nome.focus();

    return (false);

  }



  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ. \t\r\n\f";

  var checkStr = txt_Nome.value;

  var allValid = true;

  for (i = 0;  i < checkStr.length;  i++)

  {

    ch = checkStr.charAt(i);

    for (j = 0;  j < checkOK.length;  j++)

      if (ch == checkOK.charAt(j))

        break;

    if (j == checkOK.length)

    {

      allValid = false;

      break;

    }

  }

  if (!allValid)

  {

    alert("Digite somente letra, espaço em branco e \".\" caracteres no campo \"Nome\".");

    theForm.Nome.focus();

    return (false);

  }



  if (theForm.Cidade.value == "")

  {

    alert("Digite um valor para o campo \"Cidade\".");

    theForm.Cidade.focus();

    return (false);

  }



  if (theForm.Cidade.value.length < 1)

  {

    alert("Digite pelo menos 1 caracteres no campo \"Cidade\".");

    theForm.Cidade.focus();

    return (false);

  }



  if (theForm.Cidade.value.length > 20)

  {

    alert("Digite no máximo 20 caracteres no campo \"Cidade\".");

    theForm.Cidade.focus();

    return (false);

  }



  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@., \t\r\n\f";

  var checkStr = theForm.Email.value;

  var allValid = true;

  for (i = 0;  i < checkStr.length;  i++)

  {

    ch = checkStr.charAt(i);

    for (j = 0;  j < checkOK.length;  j++)

      if (ch == checkOK.charAt(j))

        break;

    if (j == checkOK.length)

    {

      allValid = false;

      break;

    }

  }

  if (!allValid)

  {

    alert("Digite somente letra, dígito, espaço em branco e \"@.,\" caracteres no campo \"Email\".");

    theForm.Email.focus();

    return (false);

  }



  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-/ \t\r\n\f";

  var checkStr = theForm.DataEntrada.value;

  var allValid = true;

  for (i = 0;  i < checkStr.length;  i++)

  {

    ch = checkStr.charAt(i);

    for (j = 0;  j < checkOK.length;  j++)

      if (ch == checkOK.charAt(j))

        break;

    if (j == checkOK.length)

    {

      allValid = false;

      break;

    }

  }

  if (!allValid)

  {

    alert("Digite somente letra, dígito, espaço em branco e \"/\" caracteres no campo \"DataEntrada\".");

    theForm.DataEntrada.focus();

    return (false);

  }



  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-/ \t\r\n\f";

  var checkStr = theForm.DataSaida.value;

  var allValid = true;

  for (i = 0;  i < checkStr.length;  i++)

  {

    ch = checkStr.charAt(i);

    for (j = 0;  j < checkOK.length;  j++)

      if (ch == checkOK.charAt(j))

        break;

    if (j == checkOK.length)

    {

      allValid = false;

      break;

    }

  }

  if (!allValid)

  {

    alert("Digite somente letra, dígito, espaço em branco e \"/\" caracteres no campo \"DataSaida\".");

    txt.DataSaida.focus();

    return (false);

  }

  return (true);

}



//FUNÇÃO STATUS

  function Eins()

    {window.status = "                 Guia Paranhana - Três Coroas, Igrejinha, Taquara e Parobé  ";

    setTimeout("Zwei()",60);

    }

   Eins();




///SCROLL

function scroll()

	{

		document.all.ultimas.scrollTop = document.all.ultimas.scrollTop + 3



		if (document.all.ultimas.scrollTop >= document.all.ultimas.scrollHeight-document.all.ultimas.style.height.replace('px', ''))

		{

			document.all.ultimas.scrollTop = 0

		}

	}



	function iniciaScroll()

	{

		IntervaloUltimas=setInterval('scroll()', 150)

	}

												

	function paraScroll()

	{

		clearInterval(IntervaloUltimas)

	}

												

	var altura = 0

	iniciaScroll()





// FUNÇÃO PARA EXIBIR DATA;

  function Data() {

   Hoje = new Date();

   var DiaMes = Hoje.getDate();
   var Dia = Hoje.getDay() + 1;
   var Mes = Hoje.getMonth() + 1;
   var Ano = Hoje.getYear();

   if (Dia == 1) Dia = "Dom";
   if (Dia == 2) Dia = "Seg";
   if (Dia == 3) Dia = "Ter";
   if (Dia == 4) Dia = "Qua";
   if (Dia == 5) Dia = "Qui";
   if (Dia == 6) Dia = "Sex";
   if (Dia == 7) Dia = "Sáb";

   if (Mes == 1) Mes = "01";
   if (Mes == 2) Mes = "02";
   if (Mes == 3) Mes = "03";
   if (Mes == 4) Mes = "04";
   if (Mes == 5) Mes = "05";
   if (Mes == 6) Mes = "06";
   if (Mes == 7) Mes = "07";
   if (Mes == 8) Mes = "08";
   if (Mes == 9) Mes = "09";
   if (Mes == 10) Mes = "10";
   if (Mes == 11) Mes = "11";
   if (Mes == 12) Mes = "12";

   var DataC = ("Poa/RS" + ", " + DiaMes + "/ " + Mes + " / " + Ano + "&nbsp;&nbsp;" + "-" + "&nbsp;&nbsp;"+ Dia);
   document.write(DataC);

}

// FUNÇÃO PARA EXIBIR DATA1;

  function Data1() {

   Hoje = new Date();

   var DiaMes = Hoje.getDate();
   var Dia = Hoje.getDay() + 1;
   var Mes = Hoje.getMonth() + 1;
   var Ano = Hoje.getYear();

   if (Dia == 1) Dia = "Dom";
   if (Dia == 2) Dia = "Seg";
   if (Dia == 3) Dia = "Ter";
   if (Dia == 4) Dia = "Qua";
   if (Dia == 5) Dia = "Qui";
   if (Dia == 6) Dia = "Sex";
   if (Dia == 7) Dia = "Sáb";

   if (Mes == 1) Mes = "01";
   if (Mes == 2) Mes = "02";
   if (Mes == 3) Mes = "03";
   if (Mes == 4) Mes = "04";
   if (Mes == 5) Mes = "05";
   if (Mes == 6) Mes = "06";
   if (Mes == 7) Mes = "07";
   if (Mes == 8) Mes = "08";
   if (Mes == 9) Mes = "09";
   if (Mes == 10) Mes = "10";
   if (Mes == 11) Mes = "11";
   if (Mes == 12) Mes = "12";

   var DataC = ( DiaMes + "/ " + Mes + " / " + Ano );
   document.write(DataC);

}


//-->
