        var months = new Array(13);
        months[1]  = "Jan";
        months[2]  = "Feb";
        months[3]  = "Mar";
        months[4]  = "Apr";
        months[5]  = "May";
        months[6]  = "Jun";
        months[7]  = "Jul";
        months[8]  = "Aug";
        months[9]  = "Sep";
        months[10] = "Oct";
        months[11] = "Nov";
        months[12] = "Dec";
        var now    = new Date();
        var monthnumber = now.getMonth();
        var monthname   = months[monthnumber];
        var monthday    = now.getDate();
        var year        = now.getYear();
        if(year < 2000) { year = year + 1900; }
        
        //month 
        document.write ('<select name=monthList id="monthList" style="margin-right:2px">')       
        for (var x = 1; x <= 12; x++)
        {
        if (monthnumber+1   == x)
        {document.writeln  ('<option value=' + x + ' selected>' + months[x] + '</option>' );         }
        else
        {document.writeln  ('<option value=' + x + '>' + months[x] + '</option>' );    }
        }
        document.write ('</select>')  
        //day
        document.write ('<select name=daysList id="daysList" style="margin-right:2px">') 
        for (var x = 1; x <= 31; x++)
        {
        if (monthday   == x)
        {document.writeln  ('<option value=' + x + ' selected>' + x + '</option>' );         }
        else
        {document.writeln  ('<option value=' + x + '>' + x + '</option>' );    }
        }
        document.write ('</select>')  
        
        //year
        document.write ('<select name=yearList id="yearList" style="margin-right:2px">')
        for (var x = year; x <= year+2; x++)
        {
        if (year   == x)
        {document.writeln  ('<option value=' + x + ' selected>' + x + '</option>' );         }
        else
        {document.writeln  ('<option value=' + x + '>' + x + '</option>' );    }
        }
        document.write ('</select>')  