        function checkPhoneNumber(phoneNo) {
                var phoneRE = /^\d\d\d-\d\d\d-\d\d\d\d$/;
                if (phoneNo.match(phoneRE)) { return true;
                } else { return false; }
        }
       
        function valid(form) {
                var field = form.email;
                var str = field.value;
                var fname = form.fname.value;
                var lname = form.lname.value;
                var addr1 = form.addr1.value;
                var addr2 = form.addr2.value;
                var city  = form.city.value;
                var state = form.state.value;
                var zip   = form.zip.value;
                var count = form.country.value;
                var phone = form.phone.value;
                var atten = form.attendees.value;
                var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
                var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
                if (!fname) {
                        alert("Please fill in the 'First Name' field.");
                        return false;
                } if (!lname) {
                        alert("Please fill in the 'Last Name' field.");
                        return false;
                } if (!addr1) {
                        alert("Please fill in the 'Address' field.");
                        return false;
                //} if (!addr2) {
                //      alert("Please fill in the 'Apt.# / Ste.' field.");
                //      return false;
                } if (!city) {
                        alert("Please fill in the 'City' field.");
                        return false;
                } if (!state) {
                        alert("Please fill in the 'State/Prv.' field.");
                        return false;
                } if (!zip) {
                        alert("Please fill in the 'Zip/Post' field.");
                        return false;
                } if (!count) {
                        alert("Please fill in the 'Country' field.");
                        return false;
                } if (!phone) {
                        alert("Please fill in the 'Phone' field.");
                        return false;
                } if (!atten) {
                        alert("Please fill in the 'Approx Number of Attendees' field.");
                        return false;
                } if (!reg1.test(str) && reg2.test(str)) {
                        //alert("Thank your for your feedback.");
                        return true;
                } else {
                        alert("\"" + str + "\" is an invalid e-mail!");
                        field.focus();
                        field.select();
                        return false;
                }
        }


