form_validate = function() { valid = true; var oForm = document.forms["detail_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

" /*alert(alertMsg);*/ window.self.location.href='#f'; return false; } return valid; }