// JavaScript Document

function checkloginform() {
	var vaild = true
	if (document.loginform.email.value == "") {
		vaild = false
		alert("Please enter an email address")
	} else if (document.loginform.account.value == "") {
		vaild = false
		alert("Please select an operation")
	} else if ((document.loginform.account.value == "login") && (document.login.password.value == "")) {
		vaild = false
		alert("Please enter a password")
	}
	
	return vaild
}