function emailBlank(formEmail){
	if (formEmail.value == '[ Enter email ]' || formEmail.value == '[ Invalid email ]' || formEmail.value == '[ Enter your email address for us to reply to ]' || formEmail.value == '[ Enter your name ]' || formEmail.value == '[ Enter message ]') {
	formEmail.value = '';
	}
}

function checkMail(){
var str = document.frmMail.txtEmail.value;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(str)){
	document.frmMail.submit();
	} else {
	document.frmMail.txtEmail.value = '[ Invalid email ]';
	}
}

function checkMessage(){
var str = document.frmContact.txtCEmail.value;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(str)){
	if (document.frmContact.txtCName.value == null || document.frmContact.txtCName.value == '[ Enter your name ]' || document.frmContact.txtCMessage.value == null || document.frmContact.txtCMessage.value == '[ Enter message ]'){
		alert('Please complete the form in full if you wish to contact us');
	} else {
		document.frmContact.submit();
	}
	} else {
	document.frmContact.txtCEmail.value = '[ Invalid email ]';
		alert('Please enter a valid email address');
	}
}