function fillMonthsHome( monthsList, monthsName ){
	
	var date = new Date();
	currentMonth = date.getMonth();
	currentFullYear = date.getFullYear();
	
	for(var i = 0; i < 20; i++) {
		
		monthsList.length += 1;
		var newOption = new Option( monthsName[ currentMonth ] + " " + currentFullYear );
		currentMonthStr = (currentMonth + 1).toString();
		currentFullMonth = (currentMonthStr.length == 1) ? "0" + currentMonthStr : currentMonthStr;
		monthsList.options[ i ] = newOption;
		monthsList.options[ i ].value = currentFullYear.toString() + currentFullMonth;
		
		currentMonth += 1;
		if (currentMonth == 12)
		{
			currentMonth = 0;
			currentFullYear += 1;			
		}
		
	}

	monthsList.selectedIndex = 1;

}


function fillMonthsDir( monthsDropT, monthsDropB, monthsName ){
	
	var date = new Date();
	currentMonth = date.getMonth();
	currentFullYear = date.getFullYear();
	
	for(var i = 0; i < 20; i++) {
		
		monthsDropT.length += 1;
		monthsDropB.length += 1;
		var newOptionT = new Option( monthsName[ currentMonth ] + " " + currentFullYear );
		var newOptionB = new Option( monthsName[ currentMonth ] + " " + currentFullYear );
		currentMonthStr = (currentMonth + 1).toString();
		currentFullMonth = (currentMonthStr.length == 1) ? "0" + currentMonthStr : currentMonthStr;
		monthsDropT.options[ i ] = newOptionT;
		monthsDropT.options[ i ].value = currentFullYear.toString() + currentFullMonth;
		monthsDropB.options[ i ] = newOptionB;
		monthsDropB.options[ i ].value = currentFullYear.toString() + currentFullMonth;
		
		currentMonth += 1;
		if (currentMonth == 12)
		{
			currentMonth = 0;
			currentFullYear += 1;			
		}
		
	}

	monthsDropT.selectedIndex = 1;
	monthsDropB.selectedIndex = 1;
	
}