function setHiddenOnSubmit(formObject,_options)
{
	// Vars.
	var id = '';
	
	// Get id
	if(formObject['selection'])
	{
		for(var r=0; r < formObject['selection'].length; r++) 
			if(formObject['selection'][r].checked)
				id = formObject['selection'][r].value;
				
		if(id == '')
		{			
			alert('Please Select a Donation Type')
			return false;
		}
	}
	else
		id = formObject['Join_ID'].value;
	
	// Url		
	if(id.match(/^http/))
		location.href=id;	
		
	// Post	
	else
	{				
		// Set
		formObject['Join_ID'].value = id;
		formObject['amt'].value = formObject['amt_'+id].value;
		
		// Verifty
		if(isNaN(formObject['amt'].value) || parseInt(formObject['amt'].value) == 0 || !formObject['amt'].value) 
		{
			alert('Please Enter an Amount');		
			return false;
		}
		
		// Options
		for(var i in _options)
		{
			formObject[i].value = '';
			if(_options[i][id])
				formObject[i].value = _options[i][id];
		}		
		return true;
	}
	
	return false;
}
