<!--
//	=======================================================================
//	validate -- 
//	=======================================================================
function validate() {
	var user = document.frmProfile.txtUSR.value;
	var first = document.frmProfile.txtFNAME.value;
	var sname = document.frmProfile.txtSNAME.value;
	var email = document.frmProfile.txtEMAIL.value;
	var pwd1 = document.frmProfile.txtPWD1.value;
	var pwd2 = document.frmProfile.txtPWD2.value;

	if (user.length == 0 ) {
		window.alert("You must enter a user name.");
		return ;
	}
	else if (first.length == 0) {
		window.alert("You must enter a first name.");
		return ;
	}
	else if (sname.length == 0) {
		window.alert("You must enter a surname.");
		return ;
	}
	else if (email.length == 0) {
		window.alert("You must enter a email address.");
		return ;
	}
	else if(pwd1.length == 0 || pwd2.length == 0) {
		window.alert("You must enter and confirm your password.");
		return ;		
	}
	else if( pwd1 != pwd2) {
		window.alert("Your passwords must match. Please re-enter you password.");
		return ;
	}
	else {
		document.frmProfile.txtConfirm.value = 'UPDATE';
		document.frmProfile.submit();
		return ;
	}
}

//-->