function mostrar(nombreCapa)
{ 
	document.getElementById(nombreCapa).style.visibility="visible"; 
} 
function ocultar(nombreCapa)
{ 
	document.getElementById(nombreCapa).style.visibility="hidden"; 
}
function validacionLog()
{				
	if(document.frm1.usua.value == "")
	{
		alert("Por favor, complete el nombre de usuario");
		return false;
	}
					
	if(document.frm1.contrasenia.value == "")
	{
		alert("Por favor, ingrese la contraseņa");
		return false;
	}
				
	return true;
}
function conEnter(e,formu) 
{
  tecla = (document.all) ? e.keyCode : e.which;
  if (tecla == 13 && document.formu.value != "") document.formu.submit();
}
function aleatorio(a,b) 
{
	return Math.round(Math.random()*(b-a)+a);

}
var paso=aleatorio(0,4); 
function autoImgFlip1() 
{ 
	if (paso < 5) {paso++;} 
	else {paso=0;} 			
	setTimeout("autoImgFlip1()",1000);								
	if (paso==0) 
	{document.inicio.imgIndex.src=document.inicio.aires.value;}				
	if (paso==1)	
	{document.inicio.imgIndex.src=document.inicio.hornos.value;}
	if (paso==2) 
	{document.inicio.imgIndex.src=document.inicio.aspiradoras.value;}	
	if (paso==3) 
	{document.inicio.imgIndex.src=document.inicio.licuadoras.value;}
	if (paso==4) 
	{document.inicio.imgIndex.src=document.inicio.microondas.value;}
} 
function Solo_Numerico(variable)
{
	Numer=parseInt(variable);
	if (isNaN(Numer))
	{
		return "";
	}
	return Numer;
}
function ValNumero(Control)
{
	Control.value=Solo_Numerico(Control.value);
}


