function ChangeDaySelection(dayDrp,monthDrp,yearDrp)
	{
		
		//alert(yearDrp);
		var drpYear = document.getElementById(yearDrp);
		var drpDay = document.getElementById(dayDrp);
		var drpMonth = document.getElementById(monthDrp);
		
		
		var iTimeSpan = 2008 - drpYear.value;
		if (iTimeSpan < 0) iTimeSpan = iTimeSpan * -1;
		var iModValue = iTimeSpan % 4;
		if (drpMonth.value == '02')
		{
			drpDay.options.remove(30);
			drpDay.options.remove(30);
			
			if (iModValue != 0)
			{
				if(drpDay.options[29] != null)
				drpDay.options.remove(29);
		 	}
		 	else
		 	{
		 		if(drpDay.options[29] == null)
		 		{
		 			var optn = document.createElement ("OPTION");
					optn.text = "29";
					optn.value = "29";
					drpDay.options[29] = optn;
		 		}
		 	}
		 }
		 else
		 {
			if (isInMaxMonthsArray(drpMonth.value))
			{
				if (drpDay.options[29] == null)
				{
					var optnNew = document.createElement ("OPTION");
					optnNew.text = "29";
					optnNew.value = "29";
					drpDay.options[29] = optnNew;
				}
				if (drpDay.options[30] == null)
				{
					var optnNew = document.createElement ("OPTION");
					optnNew.text = "30";
					optnNew.value = "30";
					drpDay.options[30] = optnNew;
				}
				if (drpDay.options[31] == null)
				{
					var optnNew = document.createElement ("OPTION");
					optnNew.text = "31";
					optnNew.value = "31";
					drpDay.options[31] = optnNew;
				}
				
				
			}
			else
			{
				if (drpDay.options[29] == null)
				{
					var optnNew = document.createElement ("OPTION");
					optnNew.text = "29";
					optnNew.value = "29";
					drpDay.options[29] = optnNew;
				}
				if (drpDay.options[30] == null)
				{
					var optnNew = document.createElement ("OPTION");
					optnNew.text = "30";
					optnNew.value = "30";
					drpDay.options[30] = optnNew;
				}
				if (drpDay.options[31] != null)
				{
					drpDay.options.remove(31);
				}
			}
		 }
	}
	function isInMaxMonthsArray(iValue)
	{
		if (iValue == '01' || iValue == '03' || iValue == '05' || iValue == '07' || iValue == '08' || iValue == '10' || iValue == '12')
			return true;
		else 
			return false;
	}
	function removeAllOptions (selectbox)
	{
		var count;
		for (count = 0 ; count < selectbox.options.length ; count++){
					selectbox.remove (count);
		}
	}
	
