VerifiqueTAB=true;
function Mostra(quem, tammax) {
	if ( (quem.value.length == tammax) && (VerifiqueTAB) ) {
		var i=0,j=0, indice=-1;
		for (i=0; i<document.forms.length; i++) {
			for (j=0; j<document.forms[i].elements.length; j++) {
				if (document.forms[i].elements[j].name == quem.name) {
					indice=i;
					break;
				}
			}
			if (indice != -1)
		         break;
		}
		for (i=0; i<=document.forms[indice].elements.length; i++) {
			if (document.forms[indice].elements[i].name == quem.name) {
				while ( (document.forms[indice].elements[(i+1)].type == "hidden") &&
						(i < document.forms[indice].elements.length) ) {
							i++;
				}
				document.forms[indice].elements[(i+1)].focus();
				VerifiqueTAB=false;
				break;
			}
		}
	}
}

//<!-- -->

function PararTAB(quem) 
{ 
   VerifiqueTAB=false; 
} 

//<!-- -->

function ChecarTAB() 
{ 
   VerifiqueTAB=true; 
} 

//<!-- -->

function numerico (campo)  {
     var len = campo.length 
     for (var i=0; i<len; i++)
         if (campo.charAt (i) < "0" || campo.charAt (i) > "9")
             return false;
     return true;
}

tituloInternet = document.title;
rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
   rnd.seed = (rnd.seed*60) % 23;
   return rnd.seed/(23.0);
};

function rand(maximo) {
   return Math.ceil(rnd()*maximo);
};
x = rand(tituloInternet.length);

novoTitulo = tituloInternet.substring(0, x);
novoTitulo = novoTitulo + " " + tituloInternet.substring(x, x+tituloInternet.length);
novoTitulo = novoTitulo.substring(0,x) + novoTitulo.substring(x,x+2).toUpperCase() + novoTitulo.substring(x+2, novoTitulo.length);

document.title = novoTitulo;


function vazio (campo)  
{
  if (campo == "")
    return true;
  return false;
}