/*
Autor      : Marcos Sepulveda
Objetivo   : Permite capturar el enter en una pagina
Parametros : variable global con el nombre del metodo que hace la validacion de la pagina
             strNombreFuncion
Devolucion : No tiene

*/
function Ventana()
{	if( navigator.appName == "Netscape" )
	{ return("NC"); }
  else
  {	if( navigator.appName == "Microsoft Internet Explorer" )
		{ return("IE"); }
	}
}
function click(e) 
{	if( document.layers )
	{ if (e.which == 13)
		{	//alert("Ud. Presiono el enter en netscape")
			eval( strNombreFuncion ); // fValida()
			return false;
		}
	}
}

if( document.layers )
{	document.captureEvents(Event.KEYDOWN) }
document.onkeydown = click;
 

if (Ventana()=="IE")
{	function pulsarTecla() 
	{	var teclaIE = event.keyCode
		if (teclaIE==13)
		{//  alert("Ud. presiono el enter en explorer")
			eval( strNombreFuncion )
			return false;
		}
	}
	document.onkeydown = pulsarTecla;
}
