<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->



<!-- Begin

today = new Date();

thismonth = today.getMonth()+1;

thisyear = today.getFullYear();

thisday = today.getDate();

showdays=30;

montharray=new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

monthdays=montharray[thismonth-1];

if (thismonth==2) {

	 if ((thisyear/4)!=parseInt(thisyear/4)) monthdays=28;

	 		else monthdays=29;

}

daysthismonth=monthdays-thisday;

daysnextmonth=showdays-daysthismonth;



thismonth = "" + thismonth

if (thismonth.length == 1) {

thismonth = "0" + thismonth;

}

document.write("<select name=startdate size=1>");

for (var theday = thisday; theday <= monthdays; theday++) {

		var theday = "" + theday;

		if (theday.length == 1) {

			 theday = "0" + theday;

		}

    document.write("<option");

    if (theday == thisday) document.write(" selected");

    document.write(">");

    document.write(thismonth + "-" + theday);

days_start1 = thismonth + "-" + theday;

}



thismonth++;

if (thismonth>12) {

	 thismonth=1;

	 thisyear++;

}

thismonth = "" + thismonth

if (thismonth.length == 1) {

thismonth = "0" + thismonth;

}

for (var theday = 1; theday <= daysnextmonth; theday++) {



		var theday = "" + theday;

		if (theday.length == 1) {

			 theday = "0" + theday;

		}

    document.write("<option");

    // if (theday == thisday) document.write(" selected");

    	 document.write(">");

    document.write(thismonth + "-" + theday);



}



document.write("</select>");



// End -->






