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")

}

function verPolitica()
{
abrirVentana(1,"mg_privacidad.aspx")
}

function verAcerca()
{
abrirVentana(1,"mg_acercade.aspx")
}

function verAcerca()
{
abrirVentana(1,"mg_condiciones.aspx")
}

function verCurso(id,seccion)
{
 document.formulario.action="mg_verCursos.aspx";
 document.formulario.curso.value=id;
 document.formulario.seccion.value=seccion;
 document.formulario.submit();
 
}

function verNoticia(id)
{
 document.formulario.action="mg_verNoticias.aspx"
 document.formulario.not.value=id;
 document.formulario.submit();
 
}

function verNovedad(id)
{
 document.formulario.action="mg_verNovedad.aspx"
 document.formulario.nov.value=id;
 document.formulario.submit();
 
}

  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;  
	 }