function abrirVentana(tipo,enlace)
{if (tipo==1)
	window.open(enlace,"_blank","width=350,height=350,top=100,left=350,resizable=no,status=no,menu=no,scrollbars=yes")
 if (tipo==2)
	window.open(enlace,"verImagen","width=350,height=350,top=100,left=350,resizable=yes,menu=no,scrollbars=yes")
 if (tipo==3)
	window.open(enlace,"_blank","width=350,height=350,top=100,left=350,resizable=yes,menu=yes,scrollbars=yes")

}


dom0="in"
dom1="fo"
dom2="@" 
dom3="fy"
dom4="labo"
dom5="ga"
dom6="das.es"

function encripta(){ 
   return dom0 + dom1 + dom2 + dom3 + dom4 + dom5 + dom6
} 

function correo(clase){ 
   document.write("<a href='mailto:" + encripta() + "' class='"+clase+"'>" + encripta() + "</a>") 
} 

  function checkNum(e) 
     {
     var whichCode = (window.Event) ? e.which : e.keyCode;
     if (((whichCode>=48)&&(whichCode<=57))||(whichCode==8)||(whichCode==45)||(whichCode==13))
        return true;
     else
        return false;  
	 }

  function checkText(e) 
     {
    
     var whichCode = (window.Event) ? e.which : e.keyCode;
     if (((whichCode>=48)&&(whichCode<=57))||((whichCode>=65)&&(whichCode<=90))||((whichCode>=97)&&(whichCode<=122))||(whichCode==32)||(whichCode==8)||(whichCode==45)||(whichCode==46)||(whichCode==13))
        return true;
     else
        return false;  
	 }
	 
	   function checkMail(e) 
     {
     var whichCode = (window.Event) ? e.which : e.keyCode;
     if (((whichCode>=48)&&(whichCode<=57))||((whichCode>=65)&&(whichCode<=90))||((whichCode>=97)&&(whichCode<=122))||(whichCode==64)||(whichCode==46))
        return true;
     else
        return false;  
	 }
	 
	 function cabecera(titulo)
	 {
		 document.write('<div style="border-bottom:1px solid #000000;text-align:right;vertical-align:bottom;"   class="opcGB"> <br> ' + titulo + ' <br>	</div>');
	 }
