function toggleOthers(walkerID) 
{
	var donationValue;

	donationValue = document.getElementById('donation'+walkerID).options[document.getElementById('donation'+walkerID).selectedIndex].value;
	if (donationValue == 'other') 
	{
		document.getElementById('other'+walkerID).style.display = 'inline';
	} 
	else 
	{
		document.getElementById('other'+walkerID).style.display = 'none';
		document.getElementById('other'+walkerID).value = '';
	}
}

function checkOtherInput(btn,walkerID) {
	var walkerCountId = btn.id.match(/([0-9]*)$/);
	var catItemId = walkerID;
	
	if(document.getElementById('donation'+catItemId)){
		var donSelVal = document.getElementById('donation'+catItemId).options[document.getElementById('donation'+catItemId).selectedIndex].value;
	}
	if(document.getElementById('other'+catItemId)){
		var otherVal = document.getElementById('other'+catItemId).value;
	}
	
	if (donSelVal == '' || (donSelVal == 'other' && otherVal.length < 1)) {
		alert('Please enter a donation amount.');
		document.getElementById('other'+catItemId).focus();
		return false;
	}
	
	if (donSelVal == 'other') 
	{
		if( isNaN(otherVal) ) {
			alert('Donation Amount is a numeric field. Please only enter digits.');
			return false;
		}
		
		if( otherVal.indexOf(".") >= 0 ) {
			alert('Donation amounts can only be whole dollars.');
			return false;
		}
		
		if( otherVal < 5 ) {
			alert('Donation is less than the allowed minimum (5).');
			return false;
		}
	}
	
	return true;                    
}