// Validation of contact us form
function fValidateForm(){
	var name = document.getElementById('name').value;
	var email = document.getElementById('email').value;
	var question = document.getElementById('question').value;

	if (name==''){
		alert('Please enter your first and last name');
		document.getElementById('name').focus();
		document.getElementById('nameLabel').className='invalidAlert';
		return false;
	}
	if (email==''){
		alert('Please enter your Email address');
		document.getElementById('email').focus();
		document.getElementById('emailLabel').className='invalidAlert';
		return false;
	}
	if (question==''){
		alert('Please enter a question or comment');
		document.getElementById('question').focus();
		document.getElementById('questionLabel').className='invalidAlert';
		return false;
	}
	fClearInvalidAlert();
}

// Clear Invalid Alert CSS when field has a value

function fClearInvalidAlert(){
	var name = document.getElementById('name').value;
	var email = document.getElementById('email').value;
	var question = document.getElementById('question').value;

	if (name!=''){ document.getElementById('nameLabel').className=''; }
	if (email!=''){ document.getElementById('emailLabel').className=''; }
	if (question!=''){ document.getElementById('questionLabel').className=''; }
}