function FrameBuilder(formId,appendTo,initialHeight,iframeCode,title){this.formId=formId;this.initialHeight=initialHeight;this.iframeCode=iframeCode;this.frame=null;this.timeInterval=200;this.appendTo=appendTo||false;this.formSubmitted=0;this.init=function(){this.createFrame();this.addFrameContent(this.iframeCode);};this.createFrame=function(){var tmp_is_ie=!!window.ActiveXObject;var htmlCode="<"+"iframe title=\""+title.replace(/[\\"']/g,'\\$&').replace(/&/g,'&')+"\" onload=\"window.parent.scrollTo(0,0)\" src=\"\" allowtransparency=\"true\" name=\""+this.formId+"\" id=\""+this.formId+"\" style=\"width:100%; overflow: hidden; height:"+this.initialHeight+"px; border:none;\" scrolling=\"no\">";if(this.appendTo===false){document.write(htmlCode);}else{var tmp=document.createElement('div');tmp.innerHTML=htmlCode;var a=this.appendTo;document.getElementById(a).appendChild(tmp.firstChild);} this.frame=document.getElementById(this.formId);if(tmp_is_ie===true){try{var iframe=this.frame;var doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow.document||iframe.document);doc.open();doc.write("");} catch(err){this.frame.src="javascript:void((function(){document.open();document.domain=\'"+this.getBaseDomain()+"\';document.close();})())";}} this.addEvent(this.frame,'load',this.bindMethod(this.setTimer,this));var self=this;if(window.chrome!==undefined){this.frame.onload=function(){try{var doc=this.contentWindow.document;var _jotform=this.contentWindow.JotForm;if(doc!==undefined){var form=doc.getElementById(""+self.formId);self.addEvent(form,"submit",function(){if(_jotform.validateAll()){self.formSubmitted=1;}});}}catch(e){}}}};this.addEvent=function(obj,type,fn){if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);} else{obj.addEventListener(type,fn,false);}};this.addFrameContent=function(string){string=string.replace(new RegExp('src\\=\\"[^"]*captcha.php\"><\/scr'+'ipt>','gim'),'src="http://api.recaptcha.net/js/recaptcha_ajax.js"><'+'div id="recaptcha_div"><'+'/div>'+'<'+'style>#recaptcha_logo{ display:none;} #recaptcha_tagline{display:none;} #recaptcha_table{border:none !important;} .recaptchatable .recaptcha_image_cell, #recaptcha_table{ background-color:transparent !important; } <'+'/style>'+'<'+'script defer="defer"> window.onload = function(){ Recaptcha.create("6Ld9UAgAAAAAAMon8zjt30tEZiGQZ4IIuWXLt1ky", "recaptcha_div", {theme: "clean",tabindex: 0,callback: function (){'+'if (document.getElementById("uword")) { document.getElementById("uword").parentNode.removeChild(document.getElementById("uword")); } if (window["validate"] !== undefined) { if (document.getElementById("recaptcha_response_field")){ document.getElementById("recaptcha_response_field").onblur = function(){ validate(document.getElementById("recaptcha_response_field"), "Required"); } } } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_challenge_field")[0].setAttribute("name", "anum"); } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_response_field")[0].setAttribute("name", "qCap"); }}})'+' }<'+'/script>');string=string.replace(/(type="text\/javascript">)\s+(validate\(\"[^"]*"\);)/,'$1 jTime = setInterval(function(){if("validate" in window){$2clearTimeout(jTime);}}, 1000);');if(string.match('#sublabel_litemode')){string=string.replace('class="form-all"','class="form-all" style="margin-top:0;"');} var iframe=this.frame;var doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow.document||iframe.document);doc.open();doc.write(string);setTimeout(function(){doc.close();try{if('JotFormFrameLoaded'in window){JotFormFrameLoaded();}}catch(e){console.log("error on frame loading",e);}},200);};this.setTimer=function(){var self=this;this.interval=setTimeout(function(){self.changeHeight();},this.timeInterval);};this.getBaseDomain=function(){var thn=window.location.hostname;var cc=0;var buff="";for(var i=0;i18){this.frame.style.height=(actualHeight)+"px";} this.setTimer();};this.bindMethod=function(method,scope){return function(){method.apply(scope,arguments);};};this.frameHeight=0;this.getBodyHeight=function(){if(this.formSubmitted===1){return;} var height;var scrollHeight;var offsetHeight;try{if(this.frame.contentWindow.document.height){height=this.frame.contentWindow.document.height;if(this.frame.contentWindow.document.body.scrollHeight){height=scrollHeight=this.frame.contentWindow.document.body.scrollHeight;} if(this.frame.contentWindow.document.body.offsetHeight){height=offsetHeight=this.frame.contentWindow.document.body.offsetHeight;}}else if(this.frame.contentWindow.document.body){var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);if(this.frame.contentWindow.document.body.scrollHeight){height=scrollHeight=this.frame.contentWindow.document.body.scrollHeight;} if(isChrome){height=scrollHeight=this.frame.contentWindow.document.height;} if(this.frame.contentWindow.document.body.offsetHeight){height=offsetHeight=this.frame.contentWindow.document.body.offsetHeight;} if(scrollHeight&&offsetHeight){height=Math.max(scrollHeight,offsetHeight);}}}catch(e){} this.frameHeight=height;return height;};this.getViewPortHeight=function(){if(this.formSubmitted===1){return;} var height=0;try{if(this.frame.contentWindow.window.innerHeight) {height=this.frame.contentWindow.window.innerHeight-18;} else if((this.frame.contentWindow.document.documentElement)&&(this.frame.contentWindow.document.documentElement.clientHeight)) {height=this.frame.contentWindow.document.documentElement.clientHeight;} else if((this.frame.contentWindow.document.body)&&(this.frame.contentWindow.document.body.clientHeight)) {height=this.frame.contentWindow.document.body.clientHeight;}}catch(e){} return height;};this.init();} FrameBuilder.get=[];var i70057465909160=new FrameBuilder("70057465909160",false,"","\n\n\n\n\n\n\n\n\njrdentistry.com - Contact Us<\/title>\n<link href=\"https:\/\/cdn.jotfor.ms\/static\/formCss.css?3.3.435\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" href=\"https:\/\/cdn.jotfor.ms\/css\/printForm.css?3.3.435\" \/>\n<style type=\"text\/css\">\n .form-label-left{\n width:0px !important;\n }\n .form-line{\n padding-top:12px;\n padding-bottom:12px;\n }\n .form-label-right{\n width:0px !important;\n }\n body, html{\n margin:0;\n padding:0;\n background:rgba(225,239,245,0);\n }\n\n .form-all{\n margin:0px auto;\n padding-top:20px;\n width:300px;\n color:#555 !important;\n font-family:\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", Verdana, sans-serif;\n font-size:12px;\n }\n .form-radio-item label, .form-checkbox-item label, .form-grading-label, .form-header{\n color: #555;\n }\n\n<\/style>\n\n<style type=\"text\/css\" id=\"form-designer-style\">\n \/* Injected CSS Code *\/\n\/*PREFERENCES STYLE*\/\n .form-label.form-label-auto {\n \n display: inline-block;\n float: left;\n text-align: left;\n \n }\n \n .form-line {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n \n .form-all {\n width: 300px;\n }\n \n .form-label-left,\n .form-label-right {\n width: 0px\n }\n \n .form-all {\n font-family: Lucida Grande, sans-serif;\n }\n .form-all .qq-upload-button,\n .form-all .form-submit-button,\n .form-all .form-submit-reset,\n .form-all .form-submit-print {\n font-family: Lucida Grande, sans-serif;\n }\n .form-all .form-pagebreak-back-container,\n .form-all .form-pagebreak-next-container {\n font-family: Lucida Grande, sans-serif;\n }\n .form-header-group {\n font-family: Lucida Grande, sans-serif;\n }\n .form-label {\n font-family: Lucida Grande, sans-serif;\n }\n \n .form-all {\n font-size: 12px\n }\n .form-all .qq-upload-button,\n .form-all .qq-upload-button,\n .form-all .form-submit-button,\n .form-all .form-submit-reset,\n .form-all .form-submit-print {\n font-size: 12px\n }\n .form-all .form-pagebreak-back-container,\n .form-all .form-pagebreak-next-container {\n font-size: 12px\n }\n \n .supernova .form-all, .form-all {\n background-color: rgba(225,239,245,0);\n border: 1px solid transparent;\n }\n \n .form-all {\n color: #555;\n }\n .form-header-group .form-header {\n color: #555;\n }\n .form-header-group .form-subHeader {\n color: #555;\n }\n .form-label-top,\n .form-label-left,\n .form-label-right,\n .form-html,\n .form-checkbox-item label,\n .form-radio-item label {\n color: #555;\n }\n \n .supernova {\n background-color: rgba(204, 204, 204, 0);\n }\n .supernova body {\n background: transparent;\n }\n \n .form-textbox,\n .form-textarea,\n .form-radio-other-input,\n .form-checkbox-other-input,\n .form-captcha input,\n .form-spinner input {\n background-color: #def3ff;\n }\n \n .supernova {\n background-image: none;\n }\n #stage {\n background-image: none;\n }\n \n .form-all {\n background-image: none;\n }\n \/*PREFERENCES STYLE*\/\/*__INSPECT_SEPERATOR__*\/.form-required {visibility: hidden;}\n.form-all{\nmargin: 0;\npadding: 0;\nwidth: 100%;\n}\n.form-line{\npadding: 0 0 4px 0;\nwidth: 100%;\n}\n.form-line input{\nmargin: 0;letter-spacing:3px;\n}\n.form-line.form-line-active {\nbackground: transparent;\n}\n#cid_1, #cid_2, #cid_3, #cid_4, #cid_5,\n.form-all .form-textbox, .form-all .form-textarea{\nwidth: 100%;\nmargin: 0;\nbox-sizing: border-box;letter-spacing:3px;\n}\n.form-all .form-submit-button{\nwidth: 100%;\n-webkit-border-radius: 6px;\n-moz-border-radius: 6px;\nborder-radius: 6px;\nfont-size: 1em;\npadding: 9px 15px;\nfont-family: \"Source Sans Pro\",sans-serif;\nfont-size: 12px;\nfont-weight: normal;\ndisplay: inline-block;\npadding: 6px 12px;\nmargin-bottom: 0;\nfont-size: 14px;\nfont-weight: 400;\nline-height: 1.42857143;\ntext-align: center;\nwhite-space: nowrap;\nvertical-align: middle;\n-ms-touch-action: manipulation;\ntouch-action: manipulation;\ncursor: pointer;\n-webkit-user-select: none;\n-moz-user-select: none;\n-ms-user-select: none;\nuser-select: none;\nbackground-image: none;\nborder: 1px solid transparent;\nborder-radius: 4px;\ncolor: #333;\nbackground-color: #fff;\nborder-color: #ccc; letter-spacing:3px;\n}\n.form-textbox, .form-textarea{\ndisplay: block;letter-spacing:3px;\nwidth: 100%;\nheight: 34px;\npadding: 6px 12px;\nfont-size: 14px;\nline-height: 1.42857143;\ncolor: #555;\nbackground-color: #fff;\nbackground-image: none;\nborder: 1px solid #ccc;\nborder-radius: 4px;\n-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);\nbox-shadow: inset 0 1px 1px rgba(0,0,0,.075);\n-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;\n-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;\ntransition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;\n}\n.form-textarea{\nheight: 100px;\n}\n.form-buttons-wrapper{\nmargin: 0!important;\n}\n\n\/*placeholder css*\/\ninput[placeholder], [placeholder], *[placeholder] {\n color:#333 !important;\n opacity: 1 !important;\n}\n::-webkit-input-placeholder { \/* WebKit browsers *\/\n color:#333 !important;\n opacity: 1 !important;\n}\n:-moz-placeholder { \/* Mozilla Firefox 4 to 18 *\/\n color: #333 !important;\n opacity: 1 !important;\n}\n::-moz-placeholder { \/* Mozilla Firefox 19+ *\/\n color: #333 !important;\n opacity: 1 !important;\n}\n:-ms-input-placeholder { \/* Internet Explorer 10+ *\/\n color: #333 !important;\n opacity: 1 !important;\n}\n*:-moz-placeholder {\n color: #333 !important;\n opacity: 1 !important;\n}\n\n\/* placeholder css*\/\n\n\n \/* Injected CSS Code *\/\n<\/style>\n\n<link type=\"text\/css\" rel=\"stylesheet\" href=\"https:\/\/cdn.jotfor.ms\/css\/styles\/buttons\/form-submit-button-light.css?3.3.435\"\/>\n<script src=\"https:\/\/cdn.jotfor.ms\/static\/prototype.forms.js\" type=\"text\/javascript\"><\/script>\n<script src=\"https:\/\/cdn.jotfor.ms\/static\/jotform.forms.js?3.3.435\" type=\"text\/javascript\"><\/script>\n<script type=\"text\/javascript\">\n var jsTime = setInterval(function(){try{\n JotForm.jsForm = true;\n\n JotForm.init(function(){\n setTimeout(function() {\n $('input_1').hint('NAME');\n }, 20);\n setTimeout(function() {\n $('input_3').hint('PHONE*');\n }, 20);\n setTimeout(function() {\n $('input_4').hint('EMAIL');\n }, 20);\n JotForm.setCustomHint( 'input_5', 'Comments\/Questions' );\n\tJotForm.clearFieldOnHide=\"disable\";\n\tJotForm.onSubmissionError=\"jumpToSubmit\";\n });\n\n clearInterval(jsTime);\n }catch(e){}}, 1000);\n\n JotForm.prepareCalculationsOnTheFly([null,{\"name\":\"input1\",\"qid\":\"1\",\"type\":\"control_textbox\"},{\"name\":\"submit\",\"qid\":\"2\",\"text\":\"SUBMIT\",\"type\":\"control_button\"},{\"name\":\"input3\",\"qid\":\"3\",\"type\":\"control_textbox\"},{\"name\":\"input4\",\"qid\":\"4\",\"type\":\"control_textbox\"},{\"name\":\"input5\",\"qid\":\"5\",\"type\":\"control_textarea\"}]);<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"https:\/\/submit.jotform.us\/submit\/70057465909160\/\" method=\"post\" name=\"form_70057465909160\" id=\"70057465909160\" accept-charset=\"utf-8\">\n <input type=\"hidden\" name=\"formID\" value=\"70057465909160\" \/>\n <div class=\"form-all\">\n <ul class=\"form-section page-section\">\n <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_1\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_1\" for=\"input_1\"> <\/label>\n <div id=\"cid_1\" class=\"form-input jf-required\">\n <input type=\"text\" id=\"input_1\" name=\"q1_input1\" data-type=\"input-textbox\" class=\"form-textbox\" size=\"20\" value=\"\" placeholder=\"NAME\" data-component=\"textbox\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_3\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_3\" for=\"input_3\">\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_3\" class=\"form-input jf-required\">\n <input type=\"text\" id=\"input_3\" name=\"q3_input3\" data-type=\"input-textbox\" class=\"form-textbox validate[required]\" size=\"20\" value=\"\" placeholder=\"PHONE*\" data-component=\"textbox\" required=\"\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_4\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_4\" for=\"input_4\"> <\/label>\n <div id=\"cid_4\" class=\"form-input jf-required\">\n <input type=\"text\" id=\"input_4\" name=\"q4_input4\" data-type=\"input-textbox\" class=\"form-textbox\" size=\"20\" value=\"\" placeholder=\"EMAIL\" data-component=\"textbox\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line form-line-column form-col-1 form-line-column-clear\" data-type=\"control_textarea\" id=\"id_5\">\n <label class=\"form-label form-label-top\" id=\"label_5\" for=\"input_5\"> <\/label>\n <div id=\"cid_5\" class=\"form-input-wide jf-required\">\n <textarea id=\"input_5\" class=\"form-textarea\" name=\"q5_input5\" cols=\"20\" rows=\"4\" data-component=\"textarea\"><\/textarea>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_button\" id=\"id_2\">\n <div id=\"cid_2\" class=\"form-input-wide\">\n <div style=\"margin-left:156px;\" class=\"form-buttons-wrapper\">\n <button id=\"input_2\" type=\"submit\" class=\"form-submit-button form-submit-button-light\" data-component=\"button\">\n SUBMIT\n <\/button>\n <\/div>\n <\/div>\n <\/li>\n <li style=\"display:none\">\n Should be Empty:\n <input type=\"text\" name=\"website\" value=\"\" \/>\n <\/li>\n <\/ul>\n <\/div>\n <input type=\"hidden\" id=\"simple_spc\" name=\"simple_spc\" value=\"70057465909160\" \/>\n <script type=\"text\/javascript\">\n document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"70057465909160-70057465909160\";\n <\/script>\n<\/form><\/body>\n<\/html>\n","jrdentistry.com - Contact Us");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("70057465909160");if(!iframe){return};switch(args[0]){case"scrollIntoView":if(!("nojump"in FrameBuilder.get)){iframe.scrollIntoView();} break;case"setHeight":iframe.style.height=args[1]+"px";break;case"collapseErrorPage":if(iframe.clientHeight>window.innerHeight){iframe.style.height=window.innerHeight+"px";} break;case"reloadPage":if(iframe){location.reload();} break;case"removeIframeOnloadAttr":iframe.removeAttribute("onload");break;}};if(window.addEventListener){window.addEventListener("message",handleIFrameMessage,false);}else if(window.attachEvent){window.attachEvent("onmessage",handleIFrameMessage);}})();