





function submitForm(){
	if(verifyForm()){
		var data = getFormValues("mainForm");
		//dumpArray(data);
		var result = ajaxServer.registerMember(data);
		if(result){
			var text = "Your appliacation has been successfully registered. \n\nDo you want to learn more about the full member benefits?";
			if(confirm(text)){
				window.location.href = MCFA_MEMBERSHIP_BENEFITS;
			}else{
				window.location.href = MCFA_STATUTES;
			}
		}else{
			var text = "Your registration could not be accepted. Server failure. Do you want to report this issue now?";
			if(confirm(text)){
				window.location.href = MCFA_YOUR_QUESTIONS;
			}else{
				window.location.href = APP_URL;
			}
		}
	}
}






/*
function checkLogin(){
	var login = document.getElementById("form_login");
	var loginStr = trim(login.value);

	login.value = loginStr.toLowerCase();

	//myAlert(loginStr);


}

*/








