/***********************************************
*
* Adjustments Admin UI
* Author: Karthikeyan Karunanidhi
* Email: EMC_SMS@Karunanidhi.com
* Creation Date: 28 April 2009
*
***********************************************/

function submitRegistrationForm(sFormId) {

	var oForm = document.getElementById(sFormId);							

	if (!checkFormInputValue (oForm.user, 'Username is required')) return false;
	if (!checkFormInputValue (oForm.passwrd1, 'Please enter a password')) return false;
	if (!checkFormInputValue (oForm.passwrd2, 'Please enter the password again to confirm')) return false;
	if (!checkFormInputValue (oForm.email, 'Please provide your email address')) return false;

	if (!checkFormInputValue (oForm.kk_fname, 'Please provide your first name')) return false;
	if (!checkFormInputValue (oForm.kk_lname, 'Please provide your last name')) return false;
	if (!checkFormInputValue (oForm.kk_college, 'Please select college')) return false;
	if (!checkFormInputValue (oForm.kk_dept, 'Please select department')) return false;
	if (!checkFormInputValue (oForm.kk_gradyear, 'Please select the year you graduated or will graduate')) return false;

	submitForm(sFormId);
}
