function validateLeadForm() {
            var res = false;

            res = getValue('title', 'Please select YOUR TITLE');
            if (!res) return res;

            res = getValue('fname', 'Please enter YOUR FIRST NAME');
            if (!res) return res;

            res = getValue('email', 'Please enter YOUR EMAIL');
            if (!res) return res;

            if (!validateEmail(document.getElementById('email').value)) {
                alert('Please enter a valid email address!');
                return false;
            }

            res = getValue('dob_month', 'Please select the Month of YOUR BIRTH DATE');
            if (!res) return res;

            res = getValue('dob_day', 'Please select the Day of YOUR BIRTH DATE');
            if (!res) return res;

            res = getValue('dob_year', 'Please select the Year of YOUR BIRTH DATE');
            if (!res) return res;


            var v = document.getElementById('dob_time_dontknow').checked;
            if (!isDefined('dob_time_dontknow') || v == false) {
                res = getValue('dob_hour', 'Please select the Hour (Hr) of YOUR BIRTH TIME or check I Don\'t Know');
                if (!res) return res;
                res = getValue('dob_minute', 'Please select the Minute (Min) of YOUR BIRTH TIME or check I Don\'t Know');
                if (!res) return res;
                //                res = getDDValue('dob_ampm', 'Please complete the Time of your birth date! Otherwise, check I don\'t know.');
            }

            res = getValue('city', 'Please enter YOUR BIRTH CITY');
            if (!res) return res;

            res = getValue('state', 'Please select YOUR BIRTH STATE');
            if (!res) return res;

            res = getValue('country', 'Please select YOUR BIRTH COUNTRY');
            if (!res) return res;

            return true;
        }

        function getValue(name, message) {
            var v = document.getElementById(name).value;
            if (v == null || v == '') {
                alert(message);
                document.getElementById(name).focus();
                return false;
            }
            return true;
        }

        function isDefined(variable) {
            return (!(!(document.getElementById(variable))))
        }
        function  validateEmail(inString) {
            var theLength = inString.length;
            if (theLength == 0) {
                return false;
            }

            if (inString.charAt(0) == "@" || inString.charAt(theLength - 1) == "@" ||
                inString.charAt(0) == "." || inString.charAt(theLength - 1) == "." || inString.charAt(0) == " " || inString.indexOf("'") != -1 ||
                inString.indexOf("@") == -1 || inString.indexOf(".") == -1 || inString.indexOf("$") != -1 || inString.indexOf("/") != -1 || inString.indexOf("@@") != -1 || inString.indexOf("..") != -1 || inString.indexOf(".@") != -1 || inString.indexOf("@.") != -1 || inString.indexOf(":") != -1 || inString.indexOf("&") != -1 || inString.indexOf("'") != -1 || inString.indexOf("!") != -1 || inString.indexOf("[") != -1 || inString.indexOf("]") != -1 || inString.indexOf("=") != -1 || inString.indexOf("^") != -1 || inString.indexOf("|") != -1 || inString.indexOf('"') != -1 || inString.indexOf("\\") != -1 ||
                inString.indexOf("#") != -1 || inString.indexOf("%") != -1 || inString.indexOf(")") != -1 || inString.indexOf("(") != -1 || inString.indexOf(">") != -1 || inString.indexOf("<") != -1 || inString.indexOf("?") != -1 || inString.indexOf("{") != -1 || inString.indexOf("}") != -1 ||
                (inString.indexOf(" ") > 0 && inString.indexOf(" ") < theLength - 1)) {
                return false;
            }
            return true;
        }