function ValidaForm(){
	var d = document.formlogin;
	if(d.login.value == ""){
		alert("Preencha corretamente o Usuario");
		d.login.focus();
		return false;
	}
	if(d.senha.value == ""){
		alert("Preencha corretamente o Senha");
		d.senha.focus();
		return false;
	}
	
	return true;
}

function popfaq(URLStr, left, top, width, height){

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}

function popAgenda(URLStr, left, top, width, height){

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}
function popPrintSenha(URLStr, left, top, width, height){

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}
function handle(event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	if (keyCode == 13) {
	  document.formlogin.submit();
	}
return false;
	
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function ProximoCampo(IDCampoAtual,IDProximoCampo){
	if(document.getElementById(IDCampoAtual).value.length == document.getElementById(IDCampoAtual).maxLength){
		document.getElementById(IDProximoCampo).focus();
	}
}
