function uTotal(inAmount, inItemName)
{
	document.getElementById('id_amount').value    = inAmount;
	document.getElementById('id_item_name').value = inItemName;
}

function validateForm()
{
	if (!(document.getElementById('id_amount').value > 0))
	{
		if (document.getElementById('id_other').checked == true)
		{
			if (!(document.getElementById('id_other_amount').value > 0))
			{
				// Other selected, but no amount entered
				alert ('Please enter an amount first.');
				return false;
			} else {
				document.getElementById('id_amount').value = document.getElementById('id_other_amount').value;
				return true;
			}
		} else if (document.getElementById('id_gush_katif').checked == true){
			if (!(document.getElementById('id_gush_katif_amount').value > 0))
			{
				// Gush Katif selected, but no amount entered
				alert ('Please enter an amount first.');
				return false;
			} else {
				document.getElementById('id_amount').value = document.getElementById('id_gush_katif_amount').value;
				return true;
			}
		} else {
			// Nothing was selected
			alert ('Please make a selection before continuing');
			return false;
		}
	} else {
		return true;
	}
}