<select id="Año" name="Año"><option value=""></option></select>Año
<select id="Mes" name="Mes"></select>Mes
<smlct="Día" nombre="Día"></mlectt<br />
<smlctt="iAño" nombre="iAño"><opción valor=""></option></select> Año
<select id="iMonth" name="iMonth"></select>Mes<select id="iDay" name="iDay"></select>Día
<script language="javascript">
<!--
//Método de uso (cadena de diferencia de objeto, fecha seleccionada predeterminada, período de tiempo), sin requisitos de pedido
PPDayselect("");
PPDayselect("i","1988-8-8","1988-1999");
function PPDayselect(){var str=["","1940-2009","0-0-0"];for(var i=0;i<arguments.length;i++){if(argumentos[i]. split("-").length==1){str[0]=argumentos[i]};if(argumentos[i].split("-").length==2){str[1]=argumentos [i]};if(argumentos[i].split("-").length==3){str[2]=argumentos[i]};}str[1]=str[1].split(" -");if(cadena[2]=="0-0-0"){cadena[2]=cadena[1][0]+"-01-01";}cadena[2]=cadena[2 ].split("-");str[1][0]=parseInt(str[1][0]);str[1][1]=parseInt(str[1][1]);if(str [2][1].length<2){str[2][1]="0"+str[2][1];}if(str[2][2].length<2){str[ 2][2]="0"+str[2][2];}PPDayselect1(str[0]+"Año",str[1][0],str[1][1]-str[1] [0]+1);PPDayselect1(str[0]+"Mes",1,12);document.getElementById(str[0]+"Año").onchange=function(){PPDayselect2(str[0]) ;};document.getElementById(str[0]+"Mes").onchange=function(){PPDayselect2(str[0]);};document.getElementById(str[0]+"Año").value=str [2][0];document.getElementById(str[0]+"Mes").value=str[2][1];PPDayselect2(str[0]);document.getElementById(str[0]+"Día ").value=cadena[2][2];
}
function PPDayselect1(ObjectName,StartNum,Length){var o=document.getElementById(ObjectName);o.options.length=Longitud;var ii;for(var i=0;i<Length;i++){ii=i+StartNum ;if(ii<10){ii="0"+ii;}o.options[i]=new Option(ii,ii);}}
función PPDayselect2(str){var DayLength=[31,28,31, 30,31,30,31,31,30,31,30,31];var Año=document.getElementById(str+"Año").value;var Mes=document.getElementById(str+"Mes");if(Año %4==0){DayLength[1]=29;}else{DayLength[1]=28;}PPDayslect(str+"Día",1,DayLength[Mes.olmcct]);}
//-->
</script>