/* mysteryguest.js
 * 15 june 2005, created by Fred Liauw
 */
 
function submitForm(command){
	var oForm = document.getElementById('loginForm');
	var ohiddenAction  = document.getElementById('hiddenActionCode');
	var oInputUsername = document.getElementById('inputUserName');
	var oInputPassword = document.getElementById('inputPassword');

	if(command=='login'){
		if(oInputUsername.value==''){
			alert('U heeft nog geen gebruikersnaam gegeven!');
			oInputUsername.focus();
			return false;
		}
		if(oInputPassword.value==''){
			alert('U heeft nog geen wachtwoord ingevuld!');
			oInputPassword.focus();
			return false;
		}
	}

	oForm.hiddenActionCode.value = command;
	oForm.submit();
	return false;
}


