function pageStart()
{
	if (document.getElementById)
	{
		paymentInput  = document.getElementById("truckCost");
		paymentInput.focus();
	}
}

function changeRadio(e)
{
	var keychar;
	var numcheck;


	keynum = getKeynum(e);

	numcheck = /[\$\d\,\.\b]/;	// We're making a change
	if (numcheck.test(String.fromCharCode(keynum)))
	{
		if (document.getElementById)
		{
			radio = document.getElementById("downPaymentAmount");
			radio.checked = true;
		}
	}

	return inputDollars(e);
}

function verifyPaymentCalculator()
{
	if (document.getElementById)
	{
		truckCost = document.getElementById("truckCost");
		downPayment = document.getElementById("downPaymentDollars");
		amountRadio = document.getElementById("downPaymentAmount");

		if (truckCost.value == "")
		{
			alert ("You must fill in the truck cost.");
			return false;
		}

		if (amountRadio.checked && downPayment.value == "")
		{
			alert ("You must fill in a down payment amount,\nor select \"No down payment\".");
			return false;
		}

		return true;
	}
}
