	function checkEmailAddress(field) {
		var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
		if (goodEmail){
			return true;
		} else {
			alert('Enter a valid email')
			field.focus()
			field.select()
			return false;
		}
	}

	function validData(oForm){
		if (oForm.comment_name.value.length <1) {
			alert('Enter your name')
			oForm.comment_name.focus()
			return;
		}

		if(!checkEmailAddress(oForm.comment_email)){
			return;
		}
		
		if (oForm.security_code.value.length != 5) {
			alert('Enter the AntiSpam Code')
			oForm.security_code.focus()
			return;
		}

		if (oForm.comment_content_long.value.length <1) {
			alert('Write a comment')
			oForm.comment_content_long.focus()
			return;
		}

		oForm.submit();
	}
