<select id="Tahun" name="Tahun"><option value=""></option></select>Tahun
<select id="Bulan" name="Bulan"></select>Bulan
<smlct="Hari" name="Hari"></mlectt<br />
<smlctt="iYear" name="iYear"><option value=""></option></select> Tahun
<select id="iMonth" name="iMonth"></select>Bulan<select id="iDay" name="iDay"></select>Hari
<script Language="javascript">
<!--
//Metode penggunaan (string perbedaan objek, tanggal pilihan default, periode waktu), tidak ada persyaratan pesanan
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(argumen[i]. split("-").length==1){str[0]=argumen[i]};if(argumen[i].split("-").length==2){str[1]=argumen [i]};if(argumen[i].split("-").panjang==3){str[2]=argumen[i]};}str[1]=str[1].split(" -");if(str[2]=="0-0-0"){str[2]=str[1][0]+"-01-01";}str[2]=str[2 ].split("-");str[1][0]=parseInt(str[1][0]);str[1][1]=parseInt(str[1][1]);if(str [2][1].panjang<2){str[2][1]="0"+str[2][1];}if(str[2][2].panjang<2){str[ 2][2]="0"+str[2][2];}PPDayselect1(str[0]+"Tahun",str[1][0],str[1][1]-str[1] [0]+1);PPDayselect1(str[0]+"Bulan",1,12);document.getElementById(str[0]+"Tahun").onchange=function(){PPDayselect2(str[0]) ;};document.getElementById(str[0]+"Bulan").onchange=function(){PPDayselect2(str[0]);};document.getElementById(str[0]+"Year").value=str [2][0];document.getElementById(str[0]+"Bulan").value=str[2][1];PPDayselect2(str[0]);document.getElementById(str[0]+"Hari ").nilai=str[2][2];
}
fungsi PPDayselect1(ObjectName,StartNum,Length){var o=document.getElementById(ObjectName);o.options.length=Length;var ii;for(var i=0;i<Length;i++){ii=i+StartNum ;if(ii<10){ii="0"+ii;}o.options[i]=Opsi baru(ii,ii);}}
fungsi PPDayselect2(str){var DayLength=[31,28,31, 30,31,30,31,31,30,31,30,31];var Tahun=document.getElementById(str+"Tahun").value;var Bulan=document.getElementById(str+"Bulan");if(Tahun %4==0){Panjang Hari[1]=29;}else{Panjang Hari[1]=28;}PPHarislect(str+"Hari",1,Panjang Hari[Bulan.olmcct]);}
//-->
</skrip>