/*
* Common javascript functions
*
* @package	www.space.org.nz website
* @author	Duncan Mundell <spam.removethis@swaziboy.com>
* @updated	01/05/07
*/

function checkLoginForm() {
	var f1 = document.forms['frmLogin'];
	var t1 = f1.user;
	var t2 = f1.password;
	
	if (t1.value == "" || t1.value == " ") {
		wm = "You must type in your username.\r\n";
		t1.focus();
		alert(wm);
		return false;
	}

	if (t2.value == "" || t1.value == " ") {
		wm = "You must type in your password.";
		t2.focus();
		alert(wm);
		return false;
	}

	return true;
}
