	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('Ingresa una direccion de email valida')
			field.focus()
			field.select()
			return false;
		}
	}

	function validData(oForm){
		if (oForm.comment_name.value.length <1) {
			alert('Ingresa tu nombre')
			oForm.comment_name.focus()
			return;
		}

		if(!checkEmailAddress(oForm.comment_email)){
			return;
		}
		
		if (oForm.security_code.value.length != 5) {
			alert('Ingresa el codigo antispam')
			oForm.security_code.focus()
			return;
		}

		if (oForm.comment_content_long.value.length <1) {
			alert('Escribe un comentario')
			oForm.comment_content_long.focus()
			return;
		}

		oForm.submit();
	}