// JavaScript Document
function Validar() {
		if (frmDatos.txtCod.value == "" || frmDatos.txtPwd.value == "") {

			alert("Por favor ingrese su usuario y password.");

			document.frmDatos.txtCod.focus();

		}

		else {
		
			//alert('ALGHO');
			frmDatos.submit();

			document.frmDatos.txtCod.style.visibility = "hidden";

			document.frmDatos.txtPwd.style.visibility = "hidden";

		}

}
		

function Cancela(){
			frmDatos.reset();		
			frmDatos.txtCod.focus();
}


function MM_reloadPage(init) {

	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
				document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);
		

function MoverFoco (ev, elem)
	{	if(ev.keyCode == 13)
		elem.focus();
	}

		
function ayuda()
	{
		//alert('HOLA');
		if(document.getElementById('ayuda').style.display=='none')
			{document.getElementById('ayuda').style.display='';	}
		else
			{document.getElementById('ayuda').style.display='none';}	
					
	}

