	    function AbrirVentana(url,lw,lh)
		{
			if (window.screen)
			{
				lTop = ((screen.height - lh) / 2);
				lLeft = ((screen.width - lw) / 2);
			}
			else
			{
				lTop = 100;
				lLeft = 100;
			}
			open(url,'info',"toolbar=no,directories=no,menubar=no,status=no,width="+lw+",height="+lh+",resizable=no,top="+lTop+",left="+lLeft);
		}

		function ValidarEmail(email) 
		{
			caracNoValidos = " /:,;";
			for (i = 0; i < caracNoValidos.length; i++) 
			{
				// ¿hay algún carácter no válido?
				caracMal = caracNoValidos.charAt(i);
				if (email.indexOf(caracMal,0) > -1)
					return false;
			}
			 // debe haber una @
			posArroba = email.indexOf("@",1);
			if (posArroba == -1) 
				return false;
			// y sólo una
			if (email.indexOf("@",posArroba + 1) != -1)
				return false;
			// y al menos un . después de la @ con un caracter en medio
			posPunto = email.indexOf(".",posArroba + 2);
			if (posPunto == -1)
				return false;
			// debe haber al menos 2 caracteres tras el .
			if (posPunto + 3 > email.length)
				return false;
			return true;
		}

		function ImprimirPagina()
		{
			if (window.print)
				window.print();
			else
				alert("Lo siento, pero a tu navegador no se le puede ordenar imprimir" +
							" desde la web. Actualizate o hazlo desde los menús");
		}

		function doBlink()
		{
			var blink = document.all.tags("BLINK");
			for (var i=0; i<blink.length; i++)
				blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "";
		}
		
		function startBlink() 
		{
			if (document.all)
				setInterval("doBlink()",1000);
		}
		
		function high(which2)
		{
			theobject=which2;
			highlighting=setInterval("highlightit(theobject)",10);
		}
		
		function low(which2)
		{
			clearInterval(highlighting);
			which2.filters.alpha.opacity=75;
		}

		function highlightit(cur2)
		{
			if (cur2.filters.alpha.opacity < 100)
				cur2.filters.alpha.opacity+=2;
			else if (window.highlighting)
				clearInterval(highlighting);
		}
		
		function textCounter(field, maxlimit)
		{
			if (field.value.length > maxlimit)
			{
				field.value = field.value.substring(0, maxlimit);
				alert("Límite del texto alcanzado.");
			}
		}
		
		function ConvertBR(input) 
		{
			var output = "";
			for (var i = 0; i < input.length; i++) 
			{
				if ((input.charCodeAt(i) == 13) && (input.charCodeAt(i + 1) == 10)) 
				{
					i++;
					output += "<BR>";
				}
				else
					output += input.charAt(i);
				}
			return output;
		}
		
		function FerSubmitCont()
		{
			lError = 0;
			if (document.formCont.nom.value == '')
				lError = 1;
			if (document.formCont.dir.value == '')
				lError = 1;
			if (document.formCont.mail.value == '')
				lError = 1;
			if (lError == 0)
			{
				if (ValidarEmail(document.formCont.mail.value))
				{
					document.formCont.submit();
				}
				else
					alert('Formato de e-mail erroneo.');
			}
			else
				alert('El nombre, la dirección y el e-mail son obligatorios.');
		}

		function FerSubmitRec()
		{
			lError = 0;
			if (document.formRec.nom1.value == '')
				lError = 1;
			if (document.formRec.nom2.value == '')
				lError = 1;
			if (document.formRec.mail.value == '')
				lError = 1;
			if (lError == 0)
			{
				if (ValidarEmail(document.formRec.mail.value))
				{
					document.formRec.submit();
				}
				else
					alert('Formato de e-mail erroneo.');
			}
			else
				alert('Los nombres y el e-mail son obligatorios.');
		}

		function FerSubmitEnv()
		{
			lError = 0;
			if (document.formEnv.nom.value == '')
				lError = 1;
			if (document.formEnv.mail.value == '')
				lError = 1;
			if (document.formEnv.dir.value == '')
				lError = 1;
			if (document.formEnv.titulo.value == '')
				lError = 1;
			if (document.formEnv.cedida.value == '')
				lError = 1;
			if (document.formEnv.archivo.value == '')
				lError = 1;
			if (lError == 0)
			{
				if (ValidarEmail(document.formEnv.mail.value))
				{
					document.formEnv.submit();
				}
				else
					alert('Formato de e-mail erroneo.');
			}
			else
				alert('Todos los campos son obligatorios.');
		}