function loginformcheck() {
	with(document.loginform) {
		if(username.value=='') {
			alert('You have not entered your username');
			username.focus()
			return false;
		}
		else if(password.value=='') {
			alert('You have not entered your password');
			password.focus()
			return false;
		}
		else {
			return true;
		}
	}
}

function loginagaincheck() {
	with(document.loginagain) {
		if(username.value=='') {
			alert('You have not entered your username');
			username.focus()
			return false;
		}
		else if(password.value=='') {
			alert('You have not entered your password');
			password.focus()
			return false;
		}
		else {
			return true;
		}
	}
}

function editpageformcheck() {
	with(document.editpageform) {
		if(page_title.value=='') {
			alert('Error \u2013 Page must have a title');
			page_title.focus()
			return false;
		}
		else if(page_section.value=='') {
			alert('Error \u2013 Page must have a section');
			page_section.focus()
			return false;
		}
		else if(page_intro.value+page_content.value=='') {
			alert('Error \u2013 Page must have an intro and/or content');
			page_intro.focus()
			return false;
		}
		else {
			return true;
		}
	}
}

function editimageformcheck() {
	with(document.editimageform) {
		if(Filedata.value=='') {
			alert('Error \u2013 No file selected');
			Filedata.focus()
			return false;
		}
		else {
			return true;
		}
	}
}

