            // <![CDATA[
            if(parent.document.getElementById('htmlformcomloader_idfea4a5_e3a')) {
                if(parent.document.getElementById('loadinghtmlformcom_idfea4a5_e3a')){
                    parent.document.getElementById('htmlformcomloader_idfea4a5_e3a').removeChild(parent.document.getElementById('loadinghtmlformcom_idfea4a5_e3a'));
                }
                if(parent.document.getElementById('rotatorhtmlformcom_idfea4a5_e3a')) {  
                    parent.document.getElementById('htmlformcomloader_idfea4a5_e3a').removeChild(parent.document.getElementById('rotatorhtmlformcom_idfea4a5_e3a'));
                }
            }
            function validateCaptcha()
            {
                challengeField = $("input#recaptcha_challenge_field").val();
                responseField = $("input#recaptcha_response_field").val();
                var html = $.ajax({
                    type: "POST",
                    url: "ajax.recaptcha.php",
                    data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField,
                    async: false
                }).responseText;
                if (html.replace(/^\s+|\s+$/, '') == "success")
                {
                    $("#captchaStatus").html(" ");
                    resizeParentIframe();
                    return true;
                }
                else
                {
                    $("#captchaStatus").html("Your captcha is incorrect. Please try again");
                    Recaptcha.reload();
                    resizeParentIframe();
                    return false;
                }
            }
            var RecaptchaOptions = {
                theme : 'clean',"width":400
            };
            $(document).ready(function() {
                if(parent.document.getElementById('htmlformcom_wp_loader_idfea4a5_e3a')){
                    $("#poweredhtmlformcom").remove();
                }
                $("#htmlform").width(500);
                $("#htmlform").css('overflow','hidden');
                //var w = parseInt($("#htmlform").css('width'));
                var w = 500;
                var navlb_space = 2*(5 + parseInt($('#htmlform').find('.main_fieldset:first').css('padding-right')));
                $('.field_block').each(function(){
                    var label = $(this).children(':first-child').find('.fieldlabel_block:first').find('label:first');
                    var w_label = parseInt(label.css('width')) + parseInt(label.css('padding-left')) + parseInt(label.css('padding-right')) + parseInt(label.css('margin-right'));
                    $(this).children(':first-child').find('.fielddesc_block:first').width(w-w_label-navlb_space-2 );
                    $(this).width(w-navlb_space+2);
                    $(this).css('overflow','hidden');
                }
                );
                $('.embd_object').each(function(){
                    var w_margin = parseInt($(this).css('margin-left'));
                    $(this).width(w-navlb_space-w_margin-2);
                    //alert(w-navlb_space-w_margin-2);
                    $(this).css('overflow','hidden');
                }
                );
                resizeParentIframe();
                $('#recaptcha_logo').remove();
                $('#recaptcha_tagline').remove();
                $.datepicker.setDefaults($.datepicker.regional['en']);
                $('.datepicker').datepicker({ dateFormat: 'dd MM yy', duration: 'fast', changeMonth:true, changeYear:true, gotoCurrent:true, showOtherMonths:true ,yearRange: '1920:2020' });
                $('.datepicker').disablekeyboard();
                // Notice the use of the each() method to acquire access to each elements attributes
                $('label[data-tooltip]').livequery(function()
                {
                    if ($(this).attr('data-tooltip')) {
                        $(this).qtip({
                            content: $(this).attr('data-tooltip'), // Use the tooltip attribute of the element for the content
                            style: 'light' // Give it a crea mstyle to make it stand out
                        });
                    }
                });
            });
            $(function(){
                var objForm = new ValidForm("htmlform", "One or more errors occurred. Check the marked fields and try again.");
                objForm.addElement('element_4e6897aa775d9', 
                'Name',
                ''
                , 
                true, 
                9000,
                null,
                '',
                'Enter only letters, numbers and punctuation symbols.',
                'We would like to know your name', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e8f820e2e214', 
                'Phone',
                /^(\(?\+?[0-9]\)?)?[0-9_\- \(\)]*$/i
                , 
                true, 
                9000,
                null,
                '',
                'Enter a valid phone number.',
                'We\'ll be needing a phone number to call you at', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e68981850e04', 
                'Email',
                /^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i
                , 
                true, 
                9000,
                null,
                '',
                'For emails use the format name@domain.ext',
                'Sorry, emails are required - we won\'t give out or sell them to anyone', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e8f826ea3a1c', 
                'City',
                '', 
                true, 
                null,
                null,
                '',
                '',
                'In order to better serve you, we ask you to provide your service location', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e6897e48ca63', 
                'Subject',
                ''
                , 
                true, 
                9000,
                null,
                '',
                'Enter only letters, numbers and punctuation symbols.',
                'This field is required.', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e689886c23cf', 
                'Tell Us More',
                '',
                false, 
                1000,
                null,
                '',
                'Enter only letters, numbers and punctuation symbols.',
                'This field is required.', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of 1000 characters or digits are allowed.');
                objForm.addElement('element_4e8f8996b878c[]', 
                'Best Times to Call',
                '', 
                true, 
                null,
                null,
                '',
                '',
                'Please let us know what times are best to reach you.', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
                objForm.addElement('element_4e8f87af3b5f5[]', 
                'agreement_4e8fadf409556',
                '', 
                true, 
                null,
                null,
                '',
                '',
                'Please agree to the terms of service', 
                'The value is the hint value. Enter your own value.', 
                'Your input is too short. A minimum of  characters or digits are allowed.', 
                'Your input is too long. A maximum of  characters or digits are allowed.');
            });
            
function resizeParentIframe() {
var w_fieldset = parseInt($(".main_fieldset").css('width'));
var w_client = document.body.clientWidth;
var w_resize = Math.max(w_fieldset,w_client);
try{
//$("body").css('width',w_resize);
//$("#htmlform").css('width',w_resize);  
//parent.document.getElementById('myiframe_idfea4a5_e3a').style.height = (document.body.clientHeight+2)+'px';
//parent.document.getElementById('myiframe_idfea4a5_e3a').style.width = (w_resize+2)+'px';
}
catch(error) {}
}
// ]]>
