/**
 * Submits the specific form by pulling in the action selected.
 * 
 * @param form
 * @return
 */
function performAction(form) {
	// default to no action
	var action = "";
	
	// loop through the form elements
	for (var i = 0; (i < form.elements.length) && (action.length == 0); i ++) {
		// look for the "action" element
		var elem = form.elements[i];
		if (elem.name == "action-item") {
			// we have the action element, see if it is checked
			if (elem.checked) {
				// we have the action
				action = elem.value;
			}
		}
	}
	
	// verify that action is not zero
	if (action.length != 0) {
		// we have an action, update the form
		form.action = action;
				
		// force the form to submit
		return true;
	}
	
	// default, do nothing
	return false;
}
