function FrameBuilder(formId,appendTo,initialHeight,iframeCode){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="";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\">','gim'),'src="http://api.recaptcha.net/js/recaptcha_ajax.js">'+'#recaptcha_logo{ display:none;} #recaptcha_tagline{display:none;} #recaptcha_table{border:none !important;} .recaptchatable .recaptcha_image_cell, #recaptcha_table{ background-color:transparent !important; } '+' 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"); }}})'+' }');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 i12783800511=new FrameBuilder("12783800511",false,"",""-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\">\n\n\n\n\n\n\n\nBWPAT New Testimonial Form\n<link href="%5C%22%5C/%5C/d2g9qbzl5h49rh.cloudfront.net%5C/static%5C/formCss.css?3.3.8682%5C%22" rel='\"stylesheet\"' type='\"text\/css\"'>\n<link type='\"text\/css\"' media='\"print\"' rel='\"stylesheet\"' href="%5C%22%5C/%5C/d2g9qbzl5h49rh.cloudfront.net%5C/css%5C/printForm.css?3.3.8682%5C%22">\n<style type='\"text\/css\"'>\n .form-label-left{\n width:175px !important;\n }\n .form-line{\n padding-top:10px;\n padding-bottom:10px;\n }\n .form-label-right{\n width:175px !important;\n }\n body, html{\n margin:0;\n padding:0;\n background:#FFFFFF;\n }\n\n .form-all{\n margin:0px auto;\n padding-top:0px;\n width:525px;\n background: #FFFFFF;\n color:#404040 !important;\n font-family:'Verdana';\n font-size:12px;\n }\n<\/style>\n\n<link type=\"text\/css\" rel=\"stylesheet\" href=\"\/\/d2g9qbzl5h49rh.cloudfront.net\/css\/styles\/buttons\/form-submit-button-simple_orange.css?3.3.8682\"\/>\n<script src=\"\/\/d2g9qbzl5h49rh.cloudfront.net\/static\/prototype.forms.js\" type=\"text\/javascript\"><\/script>\n<script src=\"\/\/d2g9qbzl5h49rh.cloudfront.net\/static\/jotform.forms.js?3.3.8682\" 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_25').hint('ex: myname@example.com');\n }, 20);\n JotForm.initCaptcha('input_19');\n });\n\n clearInterval(jsTime);\n }catch(e){}}, 1000);\n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"\/\/submit.jotform.co\/submit\/12783800511\/\" method=\"post\" name=\"form_12783800511\" id=\"12783800511\" accept-charset=\"utf-8\">\n <input type=\"hidden\" name=\"formID\" value=\"12783800511\" \/>\n <div class=\"form-all\">\n <ul class=\"form-section page-section\">\n <li id=\"cid_20\" class=\"form-input-wide\" data-type=\"control_head\">\n <div class=\"form-header-group\">\n <div class=\"header-text httal htvam\">\n <h2 id=\"header_20\" class=\"form-header\">\n Submit Your Own Testimonial!\n <\/h2>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_22\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_22\" for=\"input_22\">\n Name\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_22\" class=\"form-input jf-required\">\n <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n <input type=\"text\" class=\" form-textbox validate[required]\" data-type=\"input-textbox\" id=\"input_22\" name=\"q22_name\" size=\"40\" value=\"\" \/>\n <label class=\"form-sub-label\" for=\"input_22\" style=\"min-height: 13px;\"> Enter your first name <\/label>\n <\/span>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_email\" id=\"id_25\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_25\" for=\"input_25\"> E-mail Address <\/label>\n <div id=\"cid_25\" class=\"form-input jf-required\">\n <input type=\"email\" class=\" form-textbox validate[Email]\" id=\"input_25\" name=\"q25_emailAddress\" size=\"40\" value=\"\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_21\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_21\" for=\"input_21\">\n Where are you from?\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_21\" class=\"form-input jf-required\">\n <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n <input type=\"text\" class=\" form-textbox validate[required]\" data-type=\"input-textbox\" id=\"input_21\" name=\"q21_whereAre\" size=\"40\" value=\"\" \/>\n <label class=\"form-sub-label\" for=\"input_21\" style=\"min-height: 13px;\"> We like to know where our guests visit from! <\/label>\n <\/span>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_24\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_24\" for=\"input_24\">\n Testimonial Title\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_24\" class=\"form-input jf-required\">\n <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n <input type=\"text\" class=\" form-textbox validate[required]\" data-type=\"input-textbox\" id=\"input_24\" name=\"q24_testimonialTitle\" size=\"40\" value=\"\" \/>\n <label class=\"form-sub-label\" for=\"input_24\" style=\"min-height: 13px;\"> Enter a headline for your testimonial <\/label>\n <\/span>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_textarea\" id=\"id_5\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_5\" for=\"input_5\">\n Testimonial\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_5\" class=\"form-input jf-required\">\n <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n <textarea id=\"input_5\" class=\"form-textarea validate[required]\" name=\"q5_testimonial5\" cols=\"30\" rows=\"5\"><\/textarea>\n <label class=\"form-sub-label\" for=\"input_5\" style=\"min-height: 13px;\"> Let us know what you thought of your stay! <\/label>\n <\/span>\n <\/div>\n <\/li>\n <li class=\"form-line jf-required\" data-type=\"control_captcha\" id=\"id_19\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_19\" for=\"input_19\">\n Enter the message as it's shown\n <span class=\"form-required\">\n *\n <\/span>\n <\/label>\n <div id=\"cid_19\" class=\"form-input jf-required\">\n <div class=\"form-captcha\">\n <label for=\"input_19\"> <img alt=\"Captcha - Reload if it's not displayed\" id=\"input_19_captcha\" class=\"form-captcha-image\" style=\"background:url(\/\/d2g9qbzl5h49rh.cloudfront.net\/images\/loader-big.gif) no-repeat center;\" src=\"\/\/d2g9qbzl5h49rh.cloudfront.net\/images\/blank.gif\" width=\"150\" height=\"41\" \/> <\/label>\n <div style=\"white-space:nowrap;\">\n <input type=\"text\" id=\"input_19\" class=\"form-textbox validate[required]\" name=\"captcha\" style=\"width:130px;\" \/>\n <img src=\"\/\/d2g9qbzl5h49rh.cloudfront.net\/images\/reload.png\" alt=\"Reload\" align=\"absmiddle\" style=\"cursor:pointer\" onclick=\"JotForm.reloadCaptcha('input_19');\" \/>\n <input type=\"hidden\" name=\"captcha_id\" id=\"input_19_captcha_id\" value=\"0\" \/>\n <\/div>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_button\" id=\"id_6\">\n <div id=\"cid_6\" class=\"form-input-wide\">\n <div style=\"text-align:center\" class=\"form-buttons-wrapper\">\n <button id=\"input_6\" type=\"submit\" class=\"form-submit-button form-submit-button-simple_orange\">\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=\"12783800511\" \/>\n <script type=\"text\/javascript\">\n document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"12783800511-12783800511\";\n <\/script>\n <input type=\"hidden\" class=\"form-hidden\" value=\"info@bwakutiki.com\" id=\"input_23\" name=\"q23_sender\" \/>\n<\/form><\/body>\n<\/html>\n");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("12783800511");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);}})();</style>