function checkLoginForm(objForm) {

	var strBaseMessage = new String('Please rectify the following items before submitting the form:\r\n\r\n');
	var strMessage = new String();

	if(objForm.username.value.length == 0) {
		strMessage += 'a username is required\r\n';
		objForm.username.focus();
	}
		
	if(objForm.password.value.length == 0) {
		strMessage += 'a password is required\r\n';
		objForm.password.focus();
	}

	if(strMessage.length == 0)
		return true;
	else {
		alert(strBaseMessage + strMessage);
		return false;
	}

}	