function predo()
{
	var mm,yy;
	today= new Date();
	if (today.getMonth() < 9)
	{
		mm="0" + (today.getMonth() + 1);
	}
	else
	{
		mm=(today.getMonth() + 1);
	}
	if ((today.getYear() < 2000) && (today.getYear() > 99))
	{
		yy=(1900 + today.getYear());
	}
	else
	{
		yy=today.getYear();
	}
}

function getimage()
{
/*	if (document.myform.year.selectedIndex == 0)
	{
		y="99";
	}
	else
	{
		y=2000 + document.myform.year.selectedIndex - 1;
	}
	if (document.myform.month.selectedIndex < 9)
	{
		m="0" + (document.myform.month.selectedIndex + 1);
	}
	else
	{
		m=(document.myform.month.selectedIndex + 1);
	}*/
	y=document.myform.year.value
	m=document.myform.month.value
	if ((y == today.getYear()) && (m >= today.getMonth()))
	{
		alert("Please select a date prior to the current month");
		return;
	}

	if (y > today.getYear())
	{
		alert("Please select a date prior to the current month");
		return;
	}

	if (y == "99")
	{
		if (m < "09")
		{
			alert("Please select a date after August, 1999");
			return;
		}
	}
	srtext="/cgi-bin/gal.cgi?ce=" + y + m;
	location.href=srtext;
}

function enddo()
{
	today= new Date();
	var sel2,sel3;
	sel2=(today.getMonth() - 1);
	if (today.getMonth() == 0)
	{
		sel2=11;
	}
	if (today.getYear() >1999)
	{
		sel3=(today.getYear() - 1999);
	}
	else
	{
		sel3=(today.getYear() - 99);
	}
	if (today.getMonth() == "0")
	{
		sel3--;
	}
	document.myform.month.options[sel2].selected=true;
	document.myform.year.options[sel3].selected=true;
}