selectCurrentDateMonthYear();

function selectCurrentDateMonthYear()
{
    checkInDate = document.getElementById("dd");
    checkInMonth =document.getElementById("mm");
   
	var today=new Date();
	var nextdate=new Date();
	var thisDay = today.getDate();
	var thisMonth = today.getMonth();
	
	
	nextdate.setDate(thisDay+1);
	
	var nextDay = nextdate.getDate();
	var nextMonth = nextdate.getMonth();
	

    var strMonthArray = new Array(12);
	strMonthArray[0] = "1";
	strMonthArray[1] = "2";
	strMonthArray[2] = "3";
	strMonthArray[3] = "4";
	strMonthArray[4] = "5";
	strMonthArray[5] = "6";
	strMonthArray[6] = "7";
	strMonthArray[7] = "8";
	strMonthArray[8] = "9";
	strMonthArray[9] = "10";
	strMonthArray[10] = "11";
	strMonthArray[11] = "12";
	
	
	for (var i = 0; i < checkInDate.length; ++i)
	{
		if (checkInDate.options[i].value==thisDay)
		{
		
			checkInDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkInMonth.length; ++i)
	{
	    
		if (checkInMonth.options[i].value == strMonthArray[thisMonth])
		{
			checkInMonth.options[i].selected = true;
		}
	}
}