//---------------- Function to create the list of year -------------------
function getYearList()
{
	var s_year, e_year;
	s_year = 1970;  // <!--ICAL.StartYear-->;
	e_year = 2037;  // <!--ICAL.EndYear-->;
	for (;s_year <= e_year; s_year++) 
	{
		document.write("<OPTION VALUE="+s_year+">"+s_year+"</OPTION>");
	}
}

//---------------- Function to create the list of month ------------------
var arrMonth = new Array(X.jan,X.feb,X.mar,X.apr,X.may,X.jun,X.jul,X.aug,X.sep,X.oct,X.nov,X.dec);
function getMonthList()
{
	for(i=0; i<arrMonth.length; i++)
	{
		var j = i + 1;
		if(j<10)
			document.write("<OPTION VALUE= 0"+j+">"+arrMonth[i]+"</OPTION>");
		else
			document.write("<OPTION VALUE="+j+">"+arrMonth[i]+"</OPTION>");
	}
}

//---------------- Function to create the list of days -------------------
function getDaysList()
{
	for (i=0; i<31; i++)
	{
		var j = i + 1;
		if(j<10)
			document.write("<OPTION VALUE= 0"+j+">"+j+"</OPTION>");
		else
			document.write("<OPTION VALUE="+j+">"+j+"</OPTION>");
	}
}

//---------------- Function to create the list of hours ------------------
function getHourList()
{
	var clkHours="<!--ICAL.GetHourClock-->";
	if(clkHours == "24")
	{
		for(i=0; i<24; i++)
		{
			if(i<10)
				document.write("<OPTION VALUE= 0"+i+">"+i+"</OPTION>");
			else
				document.write("<OPTION VALUE="+i+">"+i+"</OPTION>");
		}
	}
	else if(clkHours == "12")
	{
		for(i=0; i<12; i++)
		{
			var j = i + 1;
			if(j<10)
				document.write("<OPTION VALUE= 0"+j+">"+j+"</OPTION>");
			else
				document.write("<OPTION VALUE="+j+">"+j+"</OPTION>");
		}
	}
}

//---------------- Function to create the list of minutes ----------------
function getMinuteList()
{
	arr_minute = new Array("00","05","10","15","30","45");
	for(i=0; i<arr_minute.length; i++)
	{
		document.write("<OPTION VALUE="+arr_minute[i]+">"+arr_minute[i]+"</OPTION>");
	}
}

//---------------- Function to create the list of hours for reminder -----
function getRemHourList()
{
	for(i=0; i<24; i++)
	{
		if(i<10)
			document.write("<OPTION VALUE= 0"+i+">"+i+"</OPTION>");
		else
			document.write("<OPTION VALUE="+i+">"+i+"</OPTION>");
	}
}