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(/&amp;/g,'&')+"\" onload=\"window.parent.scrollTo(0,0)\" src=\"\" allowtransparency=\"true\" name=\""+this.formId+"\" id=\""+this.formId+"\" style=\"width: 1px; min-width: 100%; display: block; overflow: hidden; height:"+this.initialHeight+"px; border: none;\" scrolling=\"no\"></if"+"rame>";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"></scr'+'ipt><'+'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;i<thn.length;i++){var chr=thn.charAt(i);if(chr=="."){cc++;}
if(cc==0){buff+=chr;}}
if(cc==2){thn=thn.replace(buff+".","");}
return thn;}
this.changeHeight=function(){var actualHeight=this.getBodyHeight();var currentHeight=this.getViewPortHeight();if(actualHeight===undefined){this.frame.style.height=this.frameHeight;if(!this.frame.style.minHeight){this.frame.style.minHeight="300px";}}else if(Math.abs(actualHeight-currentHeight)>18){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 i23473025441345=new FrameBuilder("23473025441345",false,"","<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\">\n<html><head>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\n<link rel=\"alternate\" type=\"application\/json+oembed\" href=\"https:\/\/www.jotform.com\/oembed\/?format=json&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F23473025441345\" title=\"oEmbed Form\"><link rel=\"alternate\" type=\"text\/xml+oembed\" href=\"https:\/\/www.jotform.com\/oembed\/?format=xml&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F23473025441345\" title=\"oEmbed Form\">\n<meta property=\"og:title\" content=\"JotForm\" >\n<meta property=\"og:url\" content=\"http:\/\/www.jotformeu.com\/form\/23473025441345\" >\n<meta property=\"og:description\" content=\"Please click the link to complete this form.\">\n<link rel=\"shortcut icon\" href=\"https:\/\/cdn.jotfor.ms\/favicon.ico\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\" \/>\n<meta name=\"HandheldFriendly\" content=\"true\" \/>\n<title>JotForm<\/title>\n<link href=\"https:\/\/cdn.jotfor.ms\/static\/formCss.css?3.3.2306\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" href=\"https:\/\/cdn.jotfor.ms\/css\/printForm.css?3.3.2306\" \/>\n<style type=\"text\/css\">\n    .form-label-left{\n        width:230px;\n    }\n    .form-line{\n        padding-top:12px;\n        padding-bottom:12px;\n    }\n    .form-label-right{\n        width:230px;\n    }\n    body, html{\n        margin:0;\n        padding:0;\n        background:#DAFFC4;\n    }\n\n    .form-all{\n        margin:0px auto;\n        padding-top:20px;\n        width:700px;\n        background: #DAFFC4;\n        color:#47B802 !important;\n        font-family:'Verdana';\n        font-size:14px;\n    }\n    .form-radio-item label, .form-checkbox-item label, .form-grading-label, .form-header{\n        color: #D975A2;\n    }\n\n<\/style>\n\n<style type=\"text\/css\" id=\"form-designer-style\">\n    \/* Injected CSS Code *\/\n.form-line-active {\nbackground-color:#139E11;\ncolor:#FFFFFF;\n}\n    \/* Injected CSS Code *\/\n<\/style>\n\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.2306\" 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      JotForm.description('input_4', 'fgjdfjdfgj');\nJotForm.initCaptcha('input_9');\n$('input_9_reload').observe('click',function(){ JotForm.reloadCaptcha('input_9') })\n    \/*INIT-END*\/\n});\n\n   clearInterval(jsTime);\n }catch(e){}}, 1000);\n\n   JotForm.prepareCalculationsOnTheFly([null,{\"name\":\"fullName\",\"qid\":\"1\",\"text\":\"Full Name:\",\"type\":\"control_textbox\"},null,{\"name\":\"email\",\"qid\":\"3\",\"text\":\"E-mail:\",\"type\":\"control_email\"},{\"name\":\"contactNumber\",\"qid\":\"4\",\"text\":\"Contact Number:\",\"type\":\"control_textbox\"},{\"name\":\"regarding5\",\"qid\":\"5\",\"text\":\"Regarding:\",\"type\":\"control_dropdown\"},{\"name\":\"location\",\"qid\":\"6\",\"text\":\"Location:\",\"type\":\"control_textbox\"},{\"name\":\"inquiryDetails\",\"qid\":\"7\",\"text\":\"Inquiry Details:\",\"type\":\"control_textarea\"},{\"name\":\"whereDid\",\"qid\":\"8\",\"text\":\"Where did you hear about us?\",\"type\":\"control_dropdown\"},{\"name\":\"pleaseEnter9\",\"qid\":\"9\",\"text\":\"Please enter below:\",\"type\":\"control_captcha\"},{\"name\":\"submit\",\"qid\":\"10\",\"text\":\"Submit\",\"type\":\"control_button\"}]);\n   setTimeout(function() {\nJotForm.paymentExtrasOnTheFly([null,{\"name\":\"fullName\",\"qid\":\"1\",\"text\":\"Full Name:\",\"type\":\"control_textbox\"},null,{\"name\":\"email\",\"qid\":\"3\",\"text\":\"E-mail:\",\"type\":\"control_email\"},{\"name\":\"contactNumber\",\"qid\":\"4\",\"text\":\"Contact Number:\",\"type\":\"control_textbox\"},{\"name\":\"regarding5\",\"qid\":\"5\",\"text\":\"Regarding:\",\"type\":\"control_dropdown\"},{\"name\":\"location\",\"qid\":\"6\",\"text\":\"Location:\",\"type\":\"control_textbox\"},{\"name\":\"inquiryDetails\",\"qid\":\"7\",\"text\":\"Inquiry Details:\",\"type\":\"control_textarea\"},{\"name\":\"whereDid\",\"qid\":\"8\",\"text\":\"Where did you hear about us?\",\"type\":\"control_dropdown\"},{\"name\":\"pleaseEnter9\",\"qid\":\"9\",\"text\":\"Please enter below:\",\"type\":\"control_captcha\"},{\"name\":\"submit\",\"qid\":\"10\",\"text\":\"Submit\",\"type\":\"control_button\"}]);}, 20); \n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"https:\/\/submit.jotformeu.com\/submit\/23473025441345\/\" method=\"post\" name=\"form_23473025441345\" id=\"23473025441345\" accept-charset=\"utf-8\">\n  <input type=\"hidden\" name=\"formID\" value=\"23473025441345\" \/>\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\"> Full Name: <\/label>\n        <div id=\"cid_1\" class=\"form-input\">\n          <input type=\"text\" id=\"input_1\" name=\"q1_fullName\" data-type=\"input-textbox\" class=\"form-textbox\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_email\" id=\"id_3\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_3\" for=\"input_3\">\n          E-mail:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_3\" class=\"form-input jf-required\">\n          <input type=\"email\" id=\"input_3\" name=\"q3_email\" class=\"form-textbox validate[required, Email]\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"email\" required=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_4\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_4\" for=\"input_4\">\n          Contact Number:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_4\" class=\"form-input jf-required\">\n          <input type=\"text\" id=\"input_4\" name=\"q4_contactNumber\" data-type=\"input-textbox\" class=\"form-textbox validate[required]\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" required=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_dropdown\" id=\"id_5\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_5\" for=\"input_5\"> Regarding: <\/label>\n        <div id=\"cid_5\" class=\"form-input\">\n          <select class=\"form-dropdown\" id=\"input_5\" name=\"q5_regarding5\" style=\"width:150px;\" data-component=\"dropdown\">\n            <option value=\"\">  <\/option>\n            <option value=\"Energy Audits\/BER\"> Energy Audits\/BER <\/option>\n            <option value=\"Insulation\"> Insulation <\/option>\n            <option value=\"Solar Panels\"> Solar Panels <\/option>\n            <option value=\"Heating Systems\"> Heating Systems <\/option>\n            <option value=\"Electrical Installations\"> Electrical Installations <\/option>\n            <option value=\"Plumbing\"> Plumbing <\/option>\n            <option value=\"Building + Renovations\"> Building + Renovations <\/option>\n          <\/select>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_6\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_6\" for=\"input_6\"> Location: <\/label>\n        <div id=\"cid_6\" class=\"form-input\">\n          <input type=\"text\" id=\"input_6\" name=\"q6_location\" data-type=\"input-textbox\" class=\"form-textbox\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_textarea\" id=\"id_7\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_7\" for=\"input_7\">\n          Inquiry Details:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_7\" class=\"form-input jf-required\">\n          <textarea id=\"input_7\" class=\"form-textarea validate[required]\" name=\"q7_inquiryDetails\" cols=\"40\" rows=\"6\" data-component=\"textarea\" required=\"\"><\/textarea>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_dropdown\" id=\"id_8\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_8\" for=\"input_8\"> Where did you hear about us? <\/label>\n        <div id=\"cid_8\" class=\"form-input\">\n          <select class=\"form-dropdown\" id=\"input_8\" name=\"q8_whereDid\" style=\"width:150px;\" data-component=\"dropdown\">\n            <option value=\"\">  <\/option>\n            <option value=\"Radio\"> Radio <\/option>\n            <option value=\"Television\"> Television <\/option>\n            <option value=\"Family or Friend\"> Family or Friend <\/option>\n            <option value=\"Leaflet\"> Leaflet <\/option>\n            <option value=\"Google\"> Google <\/option>\n            <option value=\"Other Search Engine\"> Other Search Engine <\/option>\n            <option value=\"Other\"> Other <\/option>\n          <\/select>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_captcha\" id=\"id_9\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_9\" for=\"input_9\">\n          Please enter below:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_9\" class=\"form-input jf-required\">\n          <div class=\"form-captcha\" data-component=\"captcha\">\n            <label for=\"input_9\"> <img alt=\"Captcha - Reload if not displayed\" id=\"input_9_captcha\" class=\"form-captcha-image\" style=\"background:url(https:\/\/cdn.jotfor.ms\/images\/loader-big.gif) no-repeat center;\" src=\"https:\/\/cdn.jotfor.ms\/images\/blank.gif\" width=\"150\" height=\"41\" \/> <\/label>\n            <div style=\"white-space:nowrap;\">\n              <input type=\"text\" id=\"input_9\" class=\"form-textbox validate[required]\" name=\"captcha\" style=\"width:130px;\" required=\"\" \/>\n              <img src=\"https:\/\/cdn.jotfor.ms\/images\/reload.png\" alt=\"Reload\" style=\"cursor:pointer;vertical-align:middle;\" id=\"input_9_reload\" \/>\n              <input type=\"hidden\" name=\"captcha_id\" id=\"input_9_captcha_id\" value=\"0\" \/>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_button\" id=\"id_10\">\n        <div id=\"cid_10\" class=\"form-input-wide\">\n          <div style=\"margin-left:156px;\" class=\"form-buttons-wrapper\">\n            <button id=\"input_10\" type=\"submit\" class=\"form-submit-button\" data-component=\"button\">\n              Submit\n            <\/button>\n            <span>\n              \u00a0\n            <\/span>\n            <button id=\"input_print_10\" style=\"margin-left:25px;\" type=\"button\" class=\"form-submit-print\" data-component=\"button\">\n              <img src=\"https:\/\/cdn.jotfor.ms\/images\/printer.png\" style=\"vertical-align:middle;\" \/>\n              <span id=\"span_print_10\" class=\"span_print\">\n                Print Form\n              <\/span>\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  <script>\n  JotForm.showJotFormPowered = \"0\";\n  <\/script>\n  <input type=\"hidden\" id=\"simple_spc\" name=\"simple_spc\" value=\"23473025441345\" \/>\n  <script type=\"text\/javascript\">\n  document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"23473025441345-23473025441345\";\n  <\/script>\n<\/form><\/body>\n<\/html>\n","Click to edit this text...");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("23473025441345");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"setMinHeight":iframe.style.minHeight=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;case"embedOptions":try{EmbedOptions.run(args[1],args[2]);}catch(e){console.log(e);}
break;}};if(window.addEventListener){window.addEventListener("message",handleIFrameMessage,false);}else if(window.attachEvent){window.attachEvent("onmessage",handleIFrameMessage);}})();