<!--
	var mywin,Month,Year,MonthName = new Array(13);
	MonthName[1] = "January";
	MonthName[2] = "February";
	MonthName[3] = "March";
	MonthName[4] = "April";
	MonthName[5] = "May";
	MonthName[6] = "June";
	MonthName[7] = "July";
	MonthName[8] = "August";
	MonthName[9] = "September";
	MonthName[10] = "October";
	MonthName[11] = "November";
	MonthName[12] = "December";
	
	function changeCal(id)
	{
		switch(id)
		{
			case 1 :
					Year = Year - 1;
					break;
				
			case 2 :
					Month = Month - 1;
					if (Month < 1)
					{
						Month = 12;
						Year = Year - 1;
					}
					break;
			case 3 :
					Month = Month + 1;
					if (Month > 12)
					{
						Month = 1;
						Year = Year + 1;
					}
					break;
			case 4 :
					Year = Year + 1;
		}
		winopen();
	}

	function winopen()
	{
				var i;
				if (mywin)
					if (!mywin.closed) mywin.document.close();
				mywin = window.open("","myWindow","height=40,width=250,top=300,left=300,resizable=no,scrollbars=no,toolbar=no");
				if ((document.window) && (!mywin.opener))
						mywin.opener = document.window;
				mywin.document.write("<html><head><title>Select Month and Year</title></head><body marginheight=\"0\" ");
				mywin.document.write("marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bgcolor=\"#FFFFFF\" text=\"#000000\">");
				mywin.document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#3399CC\"><tr>");
				mywin.document.write("<td width=\"2%\"><a href=\"javascript:window.opener.changeCal(1)\"><img alt=\"previous year\" border=0 src=\"Images/prev_year.gif\" width=\"16\" height=\"16\"></a></td>");
				mywin.document.write("<td width=\"2%\"><a href=\"javascript:window.opener.changeCal(2)\"><img alt=\"previous month\" border=0 src=\"Images/prev.gif\" width=\"16\" height=\"16\"></a></td>");
				mywin.document.write("<td width=\"92%\" align=\"center\"><b><font face=\"Arial, Helvetica, sans-serif\" color=\"#FFFFFF\">" + MonthName[Month] + " - " + Year + "</font></b></td>");
				mywin.document.write("<td width=\"2%\"><a href=\"javascript:window.opener.changeCal(3)\"><img alt=\"next month\" border=0 src=\"Images/next.gif\" width=\"16\" height=\"16\"></a></td>");
				mywin.document.write("<td width=\"2%\"><a href=\"javascript:window.opener.changeCal(4)\"><img alt=\"next year\" border=0 src=\"Images/next_year.gif\" width=\"16\" height=\"16\"></a></td>");
				mywin.document.write("</tr></table><br><div style=\"font-family:Arial,Helvetica,sans-serif;font-weight:bold;font-size:12;color:3399FF;\" align=center>use the arrow keys to move a year or month back/forward</div>");
				mywin.document.write("<center><a name=\"mylink\" href=\"javascript:window.close()\">close window</a></center>");				
				mywin.document.write("</body>");
				mywin.focus();
				if (parseInt(Month,10) <= 9)
					i = "0" + Month;
				else
					i = Month;
				document.all("rdate").value = i + "/" + Year;
				//window.opener.document.all("rdate").value = document.all("hidval").value;
	}
	
	function windefault()
	{
		var curDate,cal = document.all("rdate").value;
		curDate = true;
		if (cal.length == 7)
		{
			Month = cal.substr(0,2);
			Year = cal.substr(3,4);
			if (!isNaN(Month) && !isNaN(Year))
					if((Month >= 1 && Month <= 12) && Year.length == 4)	curDate = false;
		}
		
		if (curDate)
		{
			var myDate = new Date;
			Month = myDate.getMonth();
			Year = myDate.getFullYear();
		}
		else
		{
			Month = parseInt(Month,10);
			Year = parseInt(Year,10);
		}
		winopen();
	}
//-->
