function checkForm(){
	var msg = "";
	
	if(document.contactFrm.name.value == "") {
		msg = msg + "Name required.\n";
	}
	if(!(checkemail(document.contactFrm.email.value))) {
		msg = msg + "Valid Email Address required.\n";
	}
	if(document.contactFrm.message.value == "") {
		msg = msg + "Please enter a message.\n";
	}

	if(msg == "") {
		document.contactFrm.submit();
	} else {
		alert(msg);
	}
}

function checkemail(input)
{
	if (!input.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)){
	    return false;
	} else {
	    return true;
	}
}