function valCon(contactform) {
	with (contactform) {
		if (valfield(wpcf_your_name,'Please input your name.')==false) {
			return false;
		} //end if
		
		if (valfield(wpcf_email,'Please input your e-mail address.')==false) {
			return false;
		} //end if
		
		if (valfield(wpcf_subject,'Please input a subject for your message.')==false) {
			return false;
		} //end if
		
		if (valfield(wpcf_msg,'Please input a message.')==false) {
			return false;
		} //end if
		
		document.getElementById('conerr').innerHTML = '';
		document.getElementById('conerr').style.visibility = 'hidden';
	} //end with contactform	
} //end valCon()

function valfield(field,errtxt) {
	with (field) {
		if (value==null||value=='') {
			document.getElementById('conerr').innerHTML = errtxt;
			document.getElementById('conerr').style.visibility = 'visible';
			return false;
		} else {
			return true;
		} //end if
	} //end with field
} //end function valfield()