// JavaScript Document
function y2k(number)    { return (number < 1000) ? number + 1900 : number; }

function doCopyright()
{
	var today = new Date();
	document.write("Copyright 2008-" + y2k(today.getYear()) + ". All rights reserved.");
}

function CalculateAmount()
{
	var val= 0;
	for (var i=0; i < document.donate.gift.length; i++)
    {
   		if (document.donate.gift[i].checked)
      	{
			val = document.donate.gift[i].value;
      	}
   	}
	//alert("Value=" + val);
	if (val == 1)
	{
		val = document.donate.other1.value;
	}
	if (val == '' || isNaN(val))
	{
		alert("Please enter the amount you would like to donate");
		document.donate.other1.focus();
		return false;
	}
	document.donate.amount.value = val;
	return true;
}
