/* Javascript Helpers */

/* 
 * Generic
 *
 * Used to freeze a submit button once submitted
 */
function freezeSubmitButton(submittedForm,displayMessage)
{
	submittedForm.submit_button.value=displayMessage;
	submittedForm.submit_button.disabled=true;
	return true;
}

/* 
 * Users::signup.thtml
 *
 * Used to hide/show student id field depending on the users status
 */
function checkForManualOrganisation(categoryObject)
{
	var i = categoryObject.selectedIndex;

	if(i >= 0) {

		//alert(document.getElementById('organisation_other_field').style.display);
		if(categoryObject.options[i].value == "other") {
			document.getElementById('organisation_other_field').style.display='';
		}
		else {
			document.getElementById('organisation_other_field').style.display='none';
		}
	}
}
