//Función que permite mostrar una página en un popup
function popUp(URL,toolbar,scrollbars,location,statusbar,menubar,resizable,width,height,left,top)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=" + toolbar + ",scrollbars=" + scrollbars + ",location=" + location + ",statusbar=" + statusbar + ",menubar=" + menubar + ",resizable=" + resizable + ",width=" + width + ",height=" + height + ",left = " + left + ",top = " + top + "');");
}
function popUp4(URL)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=530,height=285,left = 180,top = 100');");
}


		function validaBuscar(frm)
			{
				if (frm.txtBuscar.value=="")
				{
					alert ("Ingrese una palabra")
					frm.txtBuscar.focus()
					//alert ("hola"+frm.txtBuscar.value)
					return false
				}
				frm.submit()
			}
			function validaEnter(frm)
			{
				//window.event.keyCode captura el valor en codigo ascii
	
				var key = window.event.keyCode
				if (key == 13)
				{	
							validaBuscar(frm)
				}
		
			}