function CambiaTemporada()
    {
        /**
        * variable que almacena la opcion elegida en el primer combo
        */
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;

	  //window.location.href="contactar.asp?IdSeccion=2&Id="+ indice;
	  window.document.Formulario.action="Plantilla.asp";
	  window.document.Formulario.submit();
		
	} 
	
	function Cambiaseccion()
    {
       
       var indice=document.Formulario.Seccion.options[document.Formulario.Seccion.selectedIndex].value;
	  window.document.Formulario.action="Plantilla.asp?Sec=1";
	  window.document.Formulario.submit();
		
	} 
	


function CambiaTemporadaNoticias()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Saladeprensa.asp";
	  window.document.Formulario.submit();
		
	} 
	
	
	
function CambiaTemporadaAficionado()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Aficionado.asp";
	  window.document.Formulario.submit();
		
	} 
	
	
	
	
	function CambiaseccionNoticias()
    {
        
       var indice=document.Formulario.Seccion.options[document.Formulario.Seccion.selectedIndex].value;
	  window.document.Formulario.action="Saladeprensa.asp?Sec=1";
	  window.document.Formulario.submit();
		
	} 
	
	
	function CambiaseccionAficionado()
    {
        
       var indice=document.Formulario.Seccion.options[document.Formulario.Seccion.selectedIndex].value;
	  window.document.Formulario.action="Aficionado.asp?Sec=1";
	  window.document.Formulario.submit();
		
	} 



function CambiaTemporadaMultimedia()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Multimedia.asp";
	  window.document.Formulario.submit();
		
	} 
	
	function CambiaTemporadaMultimediaVideo()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Multimedia.asp?aptdo=2";
	  window.document.Formulario.submit();
		
	} 

function CambiaTemporadaMultimediaAudio()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Multimedia.asp?aptdo=2";
	  window.document.Formulario.submit();
		
	} 
	
	
	
	
	function CambiaseccionMultimedia()
    {
       
      var indice=document.Formulario.Seccion.options[document.Formulario.Seccion.selectedIndex].value;
	  window.document.Formulario.action="Multimedia.asp?Sec=1";
	  window.document.Formulario.submit();
		
	} 


function CambiaTemporadaCalendario()
    {
        
       var indice=document.Formulario.Temporada.options[document.Formulario.Temporada.selectedIndex].value;
	  window.document.Formulario.action="Calendario.asp";
	  window.document.Formulario.submit();
		
	} 
	
	function CambiaseccionCalendario()
    {
       
       var indice=document.Formulario.Seccion.options[document.Formulario.Seccion.selectedIndex].value;
	  window.document.Formulario.action="Calendario.asp?Sec=1";
	  window.document.Formulario.submit();
		
	} 




var ventana
var cont=0
var titulopordefecto = "Imagen"
function abrefoto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=no,scrollbars=no,menubar=no,status=no,location=no,toolbar=no')
//ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height+30)">')
ventana.document.write('<html><head><style>img.foto{background: url("imgglobales/cargando.gif") no-repeat center}</style><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img class="foto" src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height+30)">')
//ventana.document.write('<html><head><style>img.foto{background: url("imgglobales/cargando.gif") no-repeat center center;}</style><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img class="foto" src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height+30)">')

ventana.document.close()
cont++
}
function redimensionar(ancho, alto)
{
ventana.resizeTo(ancho+12,alto+30)
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. Eliminar si no se quiere centrar el popup
}



function abrirmultimedia(pagina) {
	var ancho=404;
	var alto=402;
	//var izquierda = (screen.availWidth - ancho) / 2; 
    //var arriba = (screen.availHeight - alto) / 2; 
	xpos=(screen.width/2)-(ancho/2);
     ypos=(screen.height/2)-(alto/2);

	
	//window.open(pagina,'multimedia','width=404,height=402,resizable=no,scrollbars=no,menubar=no,status=no,location=no,toolbar=no');
	window.open(pagina,'multimedia','width=404,height=402,resizable=no,scrollbars=no,menubar=no,status=no,location=no,toolbar=no,left='+xpos+',top='+ypos+'');
	//ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);
}




<!-- Begin  para abrir ventana centrada para imagenes
function NewWindow(mypage, myname, w, h, scroll) { 
var winl = (screen.width - w) / 2; 
var wint = (screen.height - h) / 2; 
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+false+',resizable='+false+'+' 
win = window.open(mypage, myname, winprops) 
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
} 
// End --> 

<!-- Begin  para abrir popup centrado

var win = null; 
function nuevaVentana(pagina,nombre,w,h,scroll){ 
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
estilo = 
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=false' 
win = window.open(pagina,nombre,estilo) 
} 
// End --> 





function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' debe ser una direccion de mail.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' debe ser numerico.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' el numero debe estar entre '+min+' y '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' es un campo obligatorio.\n'; }
  } if (errors) alert('Por Favor Cubra los Campos Correctamente:\n'+errors);
  document.MM_returnValue = (errors == '');

}







var contenido=""
    var Letra;
    var letra;
    var LETRA;
    function comprobar(esto){
                    palabra=esto.value;
                    contenido="";
                    for (numeroDeLetra=0;numeroDeLetra<palabra.length;numeroDeLetra++){
                                        Letra=palabra.charAt(numeroDeLetra);
                                        LETRA=Letra.toUpperCase();
                                        letra=Letra.toLowerCase();
                                        if (LETRA!=letra || Letra==" " || LETRA=="_" || LETRA=="0" || LETRA=="1" || LETRA=="2" || LETRA=="3" || LETRA=="4" || LETRA=="5" || LETRA=="6" || LETRA=="7" || LETRA=="8" || LETRA=="9"){
                                                contenido=contenido+Letra;
                                                }
                                        }
                            return contenido;
                        }











var all;
var month;
var period;
var day;
function time(){
var currentDate=new Date()

hour=currentDate.getHours()
min=currentDate.getMinutes()
sec=currentDate.getSeconds()
date=currentDate.getDate()
year=currentDate.getYear()
switch(currentDate.getMonth()){
        case 0:month="Enero";break;
        case 1:month="Febrero";break;
        case 2:month="Marzo";break;
        case 3:month="Abril";break;
        case 4:month="Mayo";break;
        case 5:month="Junio";break;
        case 6:month="Julio";break;
        case 7:month="Agosto";break;
        case 8:month="Septiembre";break;
        case 9:month="Octubre";break;
        case 10:month="Noviembre";break;
        case 11:month="Diciembre";break;
}

switch(currentDate.getDay()){
        case 0:day="Domingo";break;
        case 1:day="Lunes";break;
        case 2:day="Martes";break;
        case 3:day="Miercoles";break;
        case 4:day="Jueves";break;
        case 5:day="Viernes";break;
        case 6:day="Sabado";break;
}
if(sec<10){sec="0"+sec}
if(min<10){min="0"+min}

if(hour>12){hour-=12;period="pm"} else {period="am"}
if(currentDate.getHours()==12){period="pm"}
if(currentDate.getHours()==24){period="am"}

var all=" "+day+" "+date+" de "+month+" "+year+" "+hour+":"+min+":"+sec+" "+period
window.status=all
window.setTimeout("time()",300)
}
time()
