// JavaScript Document
function textCounter(field, countfield, maxlimit) {
			if (field.value.length > maxlimit)
				field.value = field.value.substring(0, maxlimit);
			else
				countfield.value = maxlimit - field.value.length;
		}
		
				
function check_entered() {

		if ((document.postform.PostHeader.value.length < 1) || (document.postform.PostMessage.value.length < 1)) {
			alert('Please enter a both the post title and the message.');
			return(false);
		}

		}
		
function check_form() {

		if ((document.add_member.firstName.value.length < 1) || (document.add_member.lastName.value.length < 1)) {
			alert('Please enter a value for both first name and last name.');
			return(false);
		}

		}		
		
function check_loggedin() {

		if ((document.logform.j_username.value.length < 1) || (document.logform.j_password.value.length < 1)) {
			alert('Please enter your username and password.');
			return(false);
		}

		}		
