
/*

COMMENT VALIDATION

*/

function checkComment() {

	var commentField;
    var captchaField;
	var error;
	var isError;
	isErrror = false;
	
	error = "Following errors in your form:\n";
	
	
	
	commentField = document.getElementById('commentText').value;
	captchaField = document.getElementById('formcontactCaptcha').value;

	
	 if(commentField == "") {
		 error += "You did not fill out the comment field\n";
		 checkFieldFix('checkcommentText', 'commentText');
		 isError = true;
	 }
     if(captchaField == "") {
		 error += "You did not fill out the captcha text\n";
		 checkFieldFix('formcontactCaptchaHidden', 'formcontactCaptcha');
		 isError = true;
	 }
	
	 if(isError == true) {
		alert(error);
		return false; 
	 } else {

		return true; 
	 }
	 
}

