
<!--fecha


function generar_fecha() {
    var fecha = new Date();
    var dia_letra = fecha.getDay();
    var dia = fecha.getDate();
    var mes = fecha.getMonth();
    var anyo = fecha.getFullYear();

    switch(dia_letra) {
        case 0: dia_letra = "Domingo"; break;
        case 1: dia_letra = "Lunes"; break;
        case 2: dia_letra = "Martes"; break;
        case 3: dia_letra = "Miércoles"; break;
        case 4: dia_letra = "Jueves"; break;
        case 5: dia_letra = "Viernes"; break;
        case 6: dia_letra = "Sabado"; break;
        default: dia_letra = "Domingo"; break;
    }
    switch(mes) {
        case 0: mes = "Enero"; break;
        case 1: mes = "Febrero"; break;
        case 2: mes = "Marzo"; break;
        case 3: mes = "Abril"; break;
        case 4: mes = "Mayo"; break;
        case 5: mes = "Junio"; break;
        case 6: mes = "Julio"; break;
        case 7: mes = "Agosto"; break;
        case 8: mes = "Septiembre"; break;
        case 9: mes = "Octubre"; break;
        case 10: mes = "Noviembre"; break;
        case 11: mes = "Diciembre"; break;
        default: mes = ""; break;
    }
    document.write(dia_letra+", "+dia+" de "+mes+" "+anyo);
}
//-->


function agregar(){
   if ((navigator.appName=="Microsoft Internet Explorer") && 
         (parseInt(navigator.appVersion)>=4)) {
      var url="http://www.mujerydeporte.org/"; 
      var titulo="Comision Mujer y Deporte -COE-";
      window.external.AddFavorite(url,titulo);
   } else { 
      if(navigator.appName == "Netscape") 
         alert("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
   }
} 


function encuesta(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=1, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}

<!--
function openWindow(url) {
  popupWin = window.open(url, 'new_page', 'left=10,top=10,width=600,height=400,directories=no,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=0')
}
function openWindowNoticia(url) {
  popupWin2 = window.open(url, 'new_page', 'left=10,top=10,width=600,height=400,directories=no,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=0')

}
// -->

function openmapa(url) {
  popupWin2 = window.open(url, 'new_page', 'left=10,top=10,width=600,height=600,directories=no,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=0')

}

function abrir(url) {
  popupWin2 = window.open(url, 'new_page', 'left=10,top=10,width=500,height=650,directories=no,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=0')

}

//Abrir ventana flotante
function ventana(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=1, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}
//Abrir ventana flotante sin barra de scroll
function ventana2(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=0,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}
//Funcion que lanza el email para contacto con cualquier correo
//Mail para la prueba = info@triatlon.org
//nombre = lo de antes de la arroba, en este caso es "info"
//dominio = lo de despues de la arroba, en este caso "triatlon.org"
function contactar(nombre,dominio){
	document.location ='mailto:'+nombre + '@' + dominio;
}

//Función para llamar a un archivo .PDF
function lanzarPDF(url) {
	var ancho = 700;
	var alto = 500;
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	var nombre = 'ARCHIVOSPDFS';
	ventana2(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);
}

