	
//Javascript para tamaño de fuente
	
	function normal (){
		document.getElementById('nota_interna').className = 'nota_chica';
	}
	function media1 (){
		document.getElementById('nota_interna').className = 'nota_media';
	}
	function mayor (){
		document.getElementById('nota_interna').className = 'nota_grande';
	}


//Inicio de Sesión

   function SiFocus(element) {
     if (element.value == element.defaultValue) {
       element.value = '';
     }
   }
   function SiBlur(element) {
     if (element.value == '') {
       element.value = element.defaultValue;
     }
   }

   
// Ligas externas

	function initLinks() {
		for (i in document.links) {
			link = document.links[i];
			if (link.rel && link.rel.indexOf('external')!=-1) {
				link.onclick = onExternalLinkActivate;
				link.onkeypress = onExternalLinkActivate;
			}
		}
	}

	function onExternalLinkActivate() {
		window.open(this.href);
		return false;
	}

	window.onload = initLinks;


// Imprimir



        function imprimirContenido(idelemento)
        {
            <!--Declaracion de la variables-->
            var contenido = document.getElementById(idelemento);
            
            <!-- Se declara la variable para el manejo de la pantalla que muestra el contenido que se va a imprimir -->
            var pantallaImpresion = window.open('', '', 'left=50000,top=50000,width=0,height');
            
            pantallaImpresion.document.write(contenido.innerHTML);
            pantallaImpresion.document.close();
            pantallaImpresion.focus();
            pantallaImpresion.print();
            pantallaImpresion.close();
        }


// Recomienda a un amigo


	function recomiendaunamigo()
	{

	var correo;

		correo = "mailto:?subject=Recomendación sobre " +
		document.title + "&body=TE RECOMIENDO ESTA PAGINA%0A%0A" +
		location.href + "%0A%0AESPERANDO QUE SEA DE TU INTERES";

		location.href=correo;

	}


//Ventanas pop

        function popup1(mylink, windowname)
        {
        if (! window.focus)return true;
        var href;
        if (typeof(mylink) == 'string')
           href=mylink;
        else
           href=mylink.href;
        window.open(href, windowname, 'width=800px,height=430px,scrollbars=yes');
        return false;
        }

        function popup2(mylink, windowname)
        {
        if (! window.focus)return true;
        var href;
        if (typeof(mylink) == 'string')
           href=mylink;
        else
           href=mylink.href;
        window.open(href, windowname, 'width=780px,height=560px,scrollbars=yes');
        return false;
        }	
