form_validate = function() { valid = true; var oForm = document.forms["content_form"]; var subject = oForm.subject.value; var name = oForm.name.value; var email = oForm.email.value; var message = oForm.message.value; var image_code = oForm.image_code.value; var alertMsg = "

Errors were found,
please correct them and try again

" window.location.hash = '#errors'; return false; } return valid; }