// ============================================================================== // VALIDATE FORM // ============================================================================== function checkFrm() { msg = "" //do not delete this line msg += isEmpty(document.getElementById('agency_name').value, 'an Agency Name') msg += checkDropdown(document.getElementById('agency_type').selectedIndex, 'Agency Type') msg += isEmpty(document.getElementById('address').value, 'your address') msg += isEmpty(document.getElementById('city').value, 'the City') msg += isEmpty(document.getElementById('first_name').value, 'your First Name') msg += isEmpty(document.getElementById('last_name').value, 'your Last Name') msg += isEmpty(document.getElementById('phone').value, 'your phone number') msg += checkPhone(document.getElementById('phone').value, 'Phone') msg += isEmpty(document.getElementById('email').value, 'your Email') msg += checkEmail(document.getElementById('email').value, 'Email') //get values // --------------------------------------------------- // DO NOT DELETE THIS!!! if (msg != "") { alert(msg) return false } return true }