window.onload = function() { myShow = new Slideshow('my_slideshow', {hu: '/web/imagenes/', images: ['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg']}); }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function display_date()
{
  date = new Date();
  var day_of_week_number = date.getDay();
  var day_of_month = date.getDate();
  var month_number = date.getMonth();
  var year = date.getYear();
  if(year < 1900)
    year += 1900;
  var day_of_week = '';
  var month = ''
  if(month_number == 0){month = 'Enero';}
  if(month_number == 1){month = 'Febrero';}
  if(month_number == 2){month = 'Marzo';}
  if(month_number == 3){month = 'Abril';}
  if(month_number == 4){month = 'Mayo';} 
  if(month_number == 5){month = 'Junio';}
  if(month_number == 6){month = 'Julio';}
  if(month_number == 7){month = 'Agosto';}
  if(month_number == 8){month = 'Septiembre';}
  if(month_number == 9){month = 'Octubre';}
  if(month_number == 10){month = 'Noviembre';}
  if(month_number == 11){month ='Diciembre';}
  if(day_of_week_number == 0){day_of_week = 'Domingo';}
  if(day_of_week_number == 1){day_of_week = 'Lunes';}
  if(day_of_week_number == 2){day_of_week = 'Martes';}
  if(day_of_week_number == 3){day_of_week = 'Miercoles';}
  if(day_of_week_number == 4){day_of_week = 'Jueves';}
  if(day_of_week_number == 5){day_of_week = 'Viernes';}
  if(day_of_week_number == 6){day_of_week = 'Sábado';}
  var date_to_show = day_of_week + ', ' + day_of_month + ' de ' + month + ' del ' + year; 
  document.write('<font size="1" face="arial">' + date_to_show.fontcolor("#000000") + '</font>');
} 

function comprueba_acceso()
{
  if(document.getElementById("zonaprivada").value!="")
  {
    txt_zonaprivada=document.getElementById("zonaprivada").value;
    if(document.getElementById("usuario").value!="")
    {
      txt_usuario=document.getElementById("usuario").value;
      if(document.getElementById("clave").value!="")
      {
        txt_clave=document.getElementById("clave").value;
        form_vip.submit();
        return true;
      }
      else
      {
        alert("El campo password está vacío");
        return false;
      }
    }
    else
    {
      alert("El campo usuario está vacío");
      return false;
    }
  }
  else
  {
    alert("Debe seleccionar una categoría");
    return false;
  }
}

function cambio()
{
  if((document.getElementById("zonaprivada").value=="4") || (document.getElementById("zonaprivada").value=="3"))
  { 
    alert("Estamos trabajando en la construccion de esta zona privada. En breve estará disponible. Gracias");
  }
}

function cabecera()
{
	document.write('      <table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('      <tr>');
	document.write('      <td height="25" bgcolor="#ec0000"></td>');
	document.write('      <td>');
	document.write('      <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">');
	document.write('      <tr>');
	document.write('      <td width="200" valign="top" bgcolor="#F2F2F2"><div align="center"><span class="calendario"><strong>www.fcmm.net</strong></span></div></td>');
	document.write('      <td valign="middle">');
	document.write('      <div align="right" class="top">'); 
	document.write('      <div align="center"><a href="avisolegal.asp">Aviso legal</a> - <a href="mapaweb.asp">Mapa del Web</a> - <a href="creditos.asp">Créditos</a></div>');
	document.write('      </div>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('      <td width="275" rowspan="2">');
	document.write('      <table width="100%" border="0" cellspacing="10" cellpadding="0">');
	document.write('      <tr>');
	document.write('      <td>&nbsp;</td>');
	document.write('      <td><div align="left"><a href="default.asp"><img src="imagenes/logoFCMM.jpg" width="200" height="96" border="0"></a></div></td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('      <td width="18" class="direccion">&nbsp;</td>');
	document.write('      <td class="direccion"><br>');
	document.write('      Santa Quiteria, 16 - 2&ordm; B<br>');
	document.write('      Apdo. Correos 200<br>');
	document.write('      13600 - Alc&aacute;zar de San Juan (Ciudad Real)<br>');
	document.write('      Tel: 926 55 13 12 - Fax: 926 54 73 74<br>');
	document.write('      fcmm@fcmm.net');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
	document.write('      </td>');
	document.write('      <td height="200">');
	document.write('      <DIV ID="my_slideshow" CLASS="slideshow" STYLE="width:626px;height:200px">');
	document.write('      <IMG SRC="/web/imagenes/1.jpg" WIDTH="626" HEIGHT="200">');
	document.write('      </DIV>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('      <td bgcolor="#F2F2F2">');
	document.write('      <form name="form_vip" method="post" action="privada_zonaentrar.asp" onSubmit="return comprueba_acceso();">');
	document.write('      <table width="100%" border="0" align="right" cellpadding="10" cellspacing="0">');
	document.write('      <tr>');
	document.write('      <td class="intranet" ><div align="center" class="calendario">INTRANET</div></td>');
	document.write('      <td class="intranet" >');
	document.write('      <select name="zonaprivada" id="zonaprivada" class="txt">');
	document.write('      <option selected>Elige tu categoria</option>');
	document.write('      <option value="5">Federado</option>');
	document.write('      <option value="4">Club</option>');
	document.write('      </select>');
	document.write('      </td>');
	document.write('      <td class="intranet">usuario: <input id="usuario" name="usuario" class="txt" type="intranet" size="14" maxlength="15">');
	document.write('      </td>');
	document.write('      <td class="categoria"><span class="intranet">password: </span><input name="clave" id="clave" class="txt" type="password" size="14" maxlength="15">');
	document.write('      </td>');
	document.write('      <td>');
	document.write('      <input name="Submit" class="txt" type="submit" value="entrar">');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
	document.write('      </form>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
}

function cabeceraTPV()
{
	document.write('      <table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('      <tr>');
	document.write('      <td height="25" bgcolor="#ec0000"></td>');
	document.write('      <td>');
	document.write('      <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">');
	document.write('      <tr>');
	document.write('      <td width="200" valign="top" bgcolor="#F2F2F2"><div align="center"><span class="calendario"><strong>www.fcmm.net</strong></span></div></td>');
	document.write('      <td valign="middle">');
	document.write('      <div align="right" class="top">'); 
	document.write('      <div align="center"><a href="avisolegal.asp">Aviso legal</a> - <a href="mapaweb.asp">Mapa del Web</a> - <a href="creditos.asp">Créditos</a></div>');
	document.write('      </div>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('      <td width="275" rowspan="2">');
	document.write('      <table width="100%" border="0" cellspacing="10" cellpadding="0">');
	document.write('      <tr>');
	document.write('      <td>&nbsp;</td>');
	document.write('      <td><div align="left"><a href="default.asp"><img src="imagenes/logoFCMM.jpg" width="200" height="96" border="0"></a></div></td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('      <td width="18" class="direccion">&nbsp;</td>');
	document.write('      <td class="direccion"><br>');
	document.write('      Santa Quiteria, 16 - 2&ordm; B<br>');
	document.write('      Apdo. Correos 200<br>');
	document.write('      13600 - Alc&aacute;zar de San Juan (Ciudad Real)<br>');
	document.write('      Tel: 926 55 13 12 - Fax: 926 54 73 74<br>');
	document.write('      fcmm@fcmm.net');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
	document.write('      </td>');
	document.write('      <td height="200">');
	document.write('      <DIV ID="my_slideshow" CLASS="slideshow" STYLE="width:626px;height:200px">');
	document.write('      <IMG SRC="imagenes/1.jpg" WIDTH="626" HEIGHT="200">');
	document.write('      </DIV>');
	document.write('      </td>');
	document.write('      </tr>');
	document.write('      </table>');
}


function pie()
{
	document.write('            <table width="100%" border="0" align="center" cellpadding="20" cellspacing="0">');
	document.write('              <tr>');
	document.write('                <td valign="top" bgcolor="#F2F2F2"><div align="center"><span class="calendario"><strong>Federaci&oacute;n Castellano-Manchega de Motociclismo</strong></span></div></td>');
	document.write('                <td valign="top" bgcolor="#ec0000">&nbsp;</td>');
	document.write('              </tr>');
	document.write('            </table>');
}