/***********************************************
* Drop Down Date select script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
***********************************************/

var monthtext=['January','Febuary','March','April','May','June','July','August','September','October','November','December'];

function populatedropdown(dayfield, monthfield, today){
var dayfield=document.getElementById(dayfield);
var monthfield=document.getElementById(monthfield);
for (var i=0; i<31; i++){ dayfield.options[i]=new Option(i+1, i+1); }
dayfield.options[today.getDate()-1]=new Option(today.getDate(), 
today.getDate(), true, true); //select today's day
for (var m=0; m<12; m++){ monthfield.options[m]=new Option(monthtext[m], m+1); }
monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], today.getMonth()+1, true, true) //select today's month
}
