$j(function() {

	var IsDecember = new Date();
	var month = IsDecember.getMonth;

	// Remove the 25th and 26th from startDay or returnDay dropdown if it's december
	if (month == 12) {
		// Rail and National Express form Elements
		$j("#StartDay :option:eq(24)").remove();
		// Rail Extra form Elements
		$j("#ReturnDay :option:eq(24)").remove();
		// Airport Rail form Elements
		$j("#railOutboundDay :option:eq(24)").remove();
		$j("#railInboundDay :option:eq(24)").remove();

	}
	// Go through again and remove the 24 element - not great i know
	if (month == "December") {
		// Rail and National Express form Elements
		$j("#StartDay :option:eq(24)").remove();
		// Rail Extra form Elements
		$j("#ReturnDay :option:eq(24)").remove();
		// Airport Rail form Elements
		$j("#railOutboundDay :option:eq(24)").remove();
		$j("#railInboundDay :option:eq(24)").remove();
	}

	// Rail and National Express form Elements
	// Onchange Remove the 25th and 26th from startDay dropdown if it's december
	$j("#StartMonthYearCombination").change(function() {

		//Need to regex selected val 
		var selectedMonth = $j("#StartMonthYearCombination").val();

		if (selectedMonth == '12-2009') {
			$j("#StartDay :option:eq(24)").remove();
		}
		if (selectedMonth == '12-2009') {
			$j("#StartDay :option:eq(24)").remove();
		}
		if (selectedMonth != '12-2009') {
			$j("#StartDay :option:eq(23)").after("<option value='25'>25</option><option value='26'>26</option>");
		}
	});

	// Rail Extra form Elements and Return journey
	// ReturnMonthYearCombination Onchange Remove the 25th and 26th from ReturnDay dropdown if it's december
	$j("#ReturnMonthYearCombination").change(function() {

		//Need to regex selected val
		var selectedMonth = $j("#ReturnMonthYearCombination").val();

		if (selectedMonth == '12-2009') {
			$j("#ReturnDay :option:eq(24)").remove();
		}
		if (selectedMonth == '12-2009') {
			$j("#ReturnDay :option:eq(24)").remove();
		}
		if (selectedMonth != '12-2009') {
			$j("#ReturnDay :option:eq(23)").after("<option value='25'>25</option><option value='26'>26</option>");
		}
	});

	// Airport Rail form Elements
	// Airport Rail railOutboundMonthYearCombination Onchange Remove the 25th and 26th from ReturnDay dropdown if it's december
	$j("#railOutboundMonthYearCombination").change(function() {
		//Need to regex selected val
		var selectedMonth = $j("#railOutboundMonthYearCombination").val();

		if (selectedMonth == '12/2009') {
			$j("#railOutboundDay option:eq(24)").remove();
		}
		if (selectedMonth == '12/2009') {
			$j("#railOutboundDay option:eq(24)").remove();
		}
		if (selectedMonth != '12/2009') {
			$j("#railOutboundDay option:eq(23)").after("<option value='25'>25</option><option value='26'>26</option>");
		}
	});

	// Airport Rail form Elements
	// Airport Rail railInboundMonthYearCombination Onchange Remove the 25th and 26th from ReturnDay dropdown if it's december
	$j("#railInboundMonthYearCombination").change(function() {
		//Need to regex selected val
		var selectedMonth = $j("#railInboundMonthYearCombination").val();

		if (selectedMonth == '12/2009') {
			$j("#railInboundDay option:eq(24)").remove();
		}
		if (selectedMonth == '12/2009') {
			$j("#railInboundDay option:eq(24)").remove();
		}
		if (selectedMonth != '12/2009') {
			$j("#railInboundDay option:eq(23)").after("<option value='25'>25</option><option value='26'>26</option>");
		}
	});

	return true; // return true if no errors

});
