// start: form validator script function checkForm(form){ /* Use a hidden input on the submitting form called required to send required field names. Just separate the field names with commas like this: If you need all fields required then change the value="all" If you don't need the form to be validated, then don't call the script or just omit the hidden input or leave the value empty. */ required = (form.required && form.required.value)?form.required.value:false; requiredFields = required.split(','); if (required && required != "all"){ for(a=0;a