function Form_Login_Validator(theForm){
 if (theForm.login.value == "") {
   alert("Entre com seu Login");
   theForm.login.focus();
   return (false);
 }
 if (theForm.senha.value == "") {
   alert("Entre com sua Senha");
   theForm.senha.focus();
   return (false);
 }
  return (true);
}

function selLinha(qual,faz) {
	if(faz==0) { qual.style.backgroundColor='FFFFFF' }
	else { qual.style.backgroundColor='CDD5DF' }
}

function cursor(qual){
	qual.style.cursor= 'hand';
}

function pointer(qual){
	qual.style.cursor= 'default';
}
function logout(){
	if(confirm('Você, realmente, deseja encerrar o acesso à área administrativa?')){
		document.location = "/2006/admin/includes/adm_logout.asp"
	} 
}
		
var g_iCount = new Number();
var g_mCount = new Number();
var g_iCount = 1;
var g_mCount = 90;
		
function startCountdown(){
	if((g_mCount) >= 0){
		if((g_iCount - 1) >= 0){
			g_iCount = g_iCount - 1;
	
			if((g_iCount) >= 10)
				if((g_mCount) >= 10)
	    		numberCountdown.innerText = g_mCount + ':' + g_iCount;
				else
					numberCountdown.innerText = '0' +  g_mCount + ':' + g_iCount;
			else
				if((g_mCount) >= 10)
	    		numberCountdown.innerText = g_mCount + ':0' + g_iCount;
				else
					numberCountdown.innerText = '0' + g_mCount + ':0' + g_iCount;
	
	  	if((g_iCount) == 0){
				g_iCount = 60
				g_mCount = g_mCount - 1
			}
			setTimeout('startCountdown()',1000);
		}
	}else{
		alert('Sessão Expirada!');
		document.location = "/admin.htm"
	}
}