// mdk cms 3.0 javascript




function checkExtContact(f) {
	var blnSend,strAlert;
	strAlert = "";
	var strPat = /^\w+(-{1}\w+)?(\.{1}\w+(-{1}\w+)?)*\@{1}\w+(-{1}\w+)?(\.{1}\w+(-{1}\w+)?)*\.{1}\w{1,4}$/;
	var str = f.email.value;
	
	if (f.name.value == "") {
		strAlert += "- No name specified\n";
		blnSend = false;
	}
	
	if (!( strPat.test( str ))) {
		strAlert += "- No valid email specified\n";
		blnSend = false;
	}

	if (f.subject.value == "") {
		strAlert += "- No subject specified\n";
		blnSend = false;
	}
	
	if (f.message.value == "") {
		strAlert += "- No message specified\n";
		blnSend = false;
	}
	
	if (blnSend == false) { 
		alert(strAlert);
	} else {
		f.submit()
	}
}
