function validateLogin(f) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n'

	if (f.vUsername.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Username is required';
		bErrorFound = true;
	}

	if (f.vPassword.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Password is required';
		bErrorFound = true;
	}

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		return true;	
	}
}
