function CheckForm()
{
	var objform = document.formContactUs
	
	//check compulsory fields
	if(objform.ContName.value == '')
	{
		alert('Please enter your name.')
		objform.ContName.focus();
		return false
	}
	if(objform.ContEmail.value == '')
	{
		alert('Please enter your email address.')
		objform.ContEmail.focus();
		return false;
	}
	if(objform.ContEmail.value.indexOf('.') == -1 || objform.ContEmail.value.indexOf('@') == -1)
	{
		alert('This email address is not valid.');
		objform.ContEmail.focus();
		objform.ContEmail.select();
		return false;
	}	
	
	if(objform.ContTitle.value == '')
	{
		alert('Please enter the title of your message.')
		objform.ContTitle.focus();
		return false;
	}
	if(objform.ContMessage.value == '')
	{
		alert('Please enter your message.')
		objform.ContMessage.focus();
		return false;
	}
	objform.FlagProcess.value = '1'
}
