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="<"+"iframe onload=\"window.parent.scrollTo(0,0)\" src=\"\" allowtransparency=\"true\" frameborder=\"0\" name=\""+this.formId+"\" id=\""+this.formId+"\" style=\"width:100%; 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 i21523677539966=new FrameBuilder("21523677539966",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%2F21523677539966\" 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%2F21523677539966\" title=\"oEmbed Form\">\n<meta property=\"og:title\" content=\"Form\" >\n<meta property=\"og:url\" content =\"http:\/\/www.jotformpro.com\/form\/21523677539966\" >\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>Form<\/title>\n<link href=\"http:\/\/jotformpro.com\/static\/formCss.css?3.3.8348\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" href=\"http:\/\/jotformpro.com\/css\/printForm.css?3.3.8348\" \/>\n<style type=\"text\/css\">\n    .form-label-left{\n        width:150px !important;\n    }\n    .form-line{\n        padding-top:12px;\n        padding-bottom:12px;\n    }\n    .form-label-right{\n        width:150px !important;\n    }\n    body, html{\n        margin:0;\n        padding:0;\n        background:false;\n    }\n\n    .form-all{\n        margin:0px auto;\n        padding-top:20px;\n        width:460px;\n        color:#000000 !important;\n        font-family:'Helvetica';\n        font-size:12px;\n    }\n<\/style>\n\n<style type=\"text\/css\" id=\"form-designer-style\">\n    \/* Injected CSS Code *\/\n.form-subHeader {\nfont-weight:normal;\ncolor:#494949;\nfont-style: normal;\nfont-size: 14px;\nborder-top: none;\n}\nh2.form-header {\nfont-size:13px;\ncolor:#00438D;\nline-height:17.34375px;\nheight:17px;\nfont-weight:bold;\nborder-top: none;\n}\n.form-label-left {\nfont-size:14px;\ncolor:#494949;\n}\n.form-header-group {\nborder-bottom:none;\npadding:0 13px;\nmargin-bottom:3px;\n}\n.form-label-top {\nfont-size:14px;\ncolor:#494949;\n}\n    \/* Injected CSS Code *\/\n<\/style>\n\n<script src=\"http:\/\/jotformpro.com\/file-uploader\/fileuploader.js?v=3.3.8348\"><\/script>\n<script src=\"http:\/\/jotformpro.com\/static\/prototype.forms.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/jotformpro.com\/static\/jotform.forms.js?3.3.8348\" 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_5').hint('ex: myname@example.com');\n       }, 20);\n      setTimeout(function() {\n          JotForm.initMultipleUploads();\n      }, 2);\n   });\n\n   clearInterval(jsTime);\n }catch(e){}}, 1000);\n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"\/\/submit.jotformpro.com\/submit\/21523677539966\/\" method=\"post\" enctype=\"multipart\/form-data\" name=\"form_21523677539966\" id=\"21523677539966\" accept-charset=\"utf-8\">\n  <input type=\"hidden\" name=\"formID\" value=\"21523677539966\" \/>\n  <div class=\"form-all\">\n    <ul class=\"form-section page-section\">\n      <li class=\"form-line jf-required\" data-type=\"control_fullname\" id=\"id_1\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_1\" for=\"input_1\">\n          Full Name\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_1\" class=\"form-input jf-required\">\n          <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n            <input class=\"form-textbox validate[required]\" type=\"text\" size=\"10\" name=\"q1_fullName[first]\" id=\"first_1\" \/>\n            <label class=\"form-sub-label\" for=\"first_1\" id=\"sublabel_first\" style=\"min-height: 13px;\"> First Name <\/label>\n          <\/span>\n          <span class=\"form-sub-label-container\" style=\"vertical-align: top\">\n            <input class=\"form-textbox validate[required]\" type=\"text\" size=\"15\" name=\"q1_fullName[last]\" id=\"last_1\" \/>\n            <label class=\"form-sub-label\" for=\"last_1\" id=\"sublabel_last\" style=\"min-height: 13px;\"> Last Name <\/label>\n          <\/span>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_3\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_3\" for=\"input_3\"> Your business or community group name, if required <\/label>\n        <div id=\"cid_3\" class=\"form-input jf-required\">\n          <input type=\"text\" class=\" form-textbox\" data-type=\"input-textbox\" id=\"input_3\" name=\"q3_yourBusiness\" size=\"20\" value=\"\" \/>\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\" class=\" form-textbox validate[required]\" data-type=\"input-textbox\" id=\"input_4\" name=\"q4_contactNumber\" size=\"20\" value=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_email\" id=\"id_5\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_5\" for=\"input_5\">\n          E-mail\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_5\" class=\"form-input jf-required\">\n          <input type=\"email\" class=\" form-textbox validate[required, Email]\" id=\"input_5\" name=\"q5_email5\" size=\"30\" value=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_dropdown\" id=\"id_6\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_6\" for=\"input_6\">\n          Location\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_6\" class=\"form-input jf-required\">\n          <select class=\"form-dropdown validate[required]\" style=\"width:150px\" id=\"input_6\" name=\"q6_location\">\n            <option value=\"\">  <\/option>\n            <option value=\"Ashington\t\t\"> Ashington <\/option>\n            <option value=\"Bedlington\t\t\"> Bedlington <\/option>\n            <option value=\"Bensham &amp; Saltwell  \t\t\"> Bensham &amp; Saltwell <\/option>\n            <option value=\"Benton &amp; Forest Hall  \t\"> Benton &amp; Forest Hall <\/option>\n            <option value=\"Benwell, Scotswood &amp; Elswick \t\"> Benwell, Scotswood &amp; Elswick <\/option>\n            <option value=\"Birtley \"> Birtley <\/option>\n            <option value=\"Blakelaw &amp; Cowgate \t\t\"> Blakelaw &amp; Cowgate <\/option>\n            <option value=\"Blaydon\t\t\t\t\"> Blaydon <\/option>\n            <option value=\"Blyth\t\t\t\t\"> Blyth <\/option>\n            <option value=\"Boldon\t\t\t\"> Boldon <\/option>\n            <option value=\"Burradon &amp; Camperdown\t\t\"> Burradon &amp; Camperdown <\/option>\n            <option value=\"Byker\t\t\t\"> Byker <\/option>\n            <option value=\"Chester-le-Street\t\t\"> Chester-le-Street <\/option>\n            <option value=\"Consett\t\t\t\t\"> Consett <\/option>\n            <option value=\"Cramlington\t\t\t\"> Cramlington <\/option>\n            <option value=\"Denton \t\t\t\t\"> Denton <\/option>\n            <option value=\"Dunston &amp; Teams\t\t\"> Dunston &amp; Teams <\/option>\n            <option value=\"Durham \t\t\t\t\"> Durham <\/option>\n            <option value=\"Fawdon &amp; Kingston Park  \t\"> Fawdon &amp; Kingston Park <\/option>\n            <option value=\"Felling\t\t\t\t\"> Felling <\/option>\n            <option value=\"Fenham\t\t\t\t\"> Fenham <\/option>\n            <option value=\"Gateshead\t\t\"> Gateshead <\/option>\n            <option value=\"Gosforth\t\t\"> Gosforth <\/option>\n            <option value=\"Heaton\t\t\t\"> Heaton <\/option>\n            <option value=\"Hebburn\t\t\t\t\"> Hebburn <\/option>\n            <option value=\"Howdon &amp; Percy Main\t\"> Howdon &amp; Percy Main <\/option>\n            <option value=\"Jarrow\t\t\t\"> Jarrow <\/option>\n            <option value=\"Jesmond &amp; Sandyford\t\t\"> Jesmond &amp; Sandyford <\/option>\n            <option value=\"Kenton\t\t\t\"> Kenton <\/option>\n            <option value=\"Killingworth\t\t\"> Killingworth <\/option>\n            <option value=\"Longbenton\t\t\t\"> Longbenton <\/option>\n            <option value=\"Low Fell\t\t\t\"> Low Fell <\/option>\n            <option value=\"Morpeth\t\t\t\t\"> Morpeth <\/option>\n            <option value=\"Newbiggin Hall &amp; Westerhope\t\"> Newbiggin Hall &amp; Westerhope <\/option>\n            <option value=\"Newburn &amp; Walbottle\t\"> Newburn &amp; Walbottle <\/option>\n            <option value=\"Newcastle \t\t\t\"> Newcastle <\/option>\n            <option value=\"North Shields &amp; Meadow Well      \"> North Shields &amp; Meadow Well <\/option>\n            <option value=\"Rowlands Gill\t\t\t\"> Rowlands Gill <\/option>\n            <option value=\"Ryton\t\t\t\"> Ryton <\/option>\n            <option value=\"Shiremoor &amp; West Allotment\t\"> Shiremoor &amp; West Allotment <\/option>\n            <option value=\"South Shields\t\t\t\"> South Shields <\/option>\n            <option value=\"Stanley\t\t\t\t\"> Stanley <\/option>\n            <option value=\"Sunderland \t\t\"> Sunderland <\/option>\n            <option value=\"Sunniside\t\t\"> Sunniside <\/option>\n            <option value=\"Tynemouth &amp; Cullercoats\t\t\"> Tynemouth &amp; Cullercoats <\/option>\n            <option value=\"Walker \t\t\t\t\"> Walker <\/option>\n            <option value=\"Wallsend\t\t\"> Wallsend <\/option>\n            <option value=\"Washington\t\t\"> Washington <\/option>\n            <option value=\"Whickham \t\t\"> Whickham <\/option>\n            <option value=\"Whitley Bay \t\t\"> Whitley Bay <\/option>\n            <option value=\"Winlaton\t\t\"> Winlaton <\/option>\n            <option value=\"Wrekenton &amp; Springwell Estate\t\"> Wrekenton &amp; Springwell Estate <\/option>\n          <\/select>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_7\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_7\" for=\"input_7\"> Location (if not in list) <\/label>\n        <div id=\"cid_7\" class=\"form-input jf-required\">\n          <input type=\"text\" class=\" form-textbox\" data-type=\"input-textbox\" id=\"input_7\" name=\"q7_locationif7\" size=\"20\" value=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_textarea\" id=\"id_8\">\n        <label class=\"form-label form-label-top\" id=\"label_8\" for=\"input_8\">\n          Story\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_8\" class=\"form-input-wide jf-required\">\n          <textarea id=\"input_8\" class=\"form-textarea validate[required]\" name=\"q8_story\" cols=\"40\" rows=\"6\"><\/textarea>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_fileupload\" id=\"id_9\">\n        <label class=\"form-label form-label-top\" id=\"label_9\" for=\"input_9\"> Videos and pictures <\/label>\n        <div id=\"cid_9\" class=\"form-input-wide jf-required\">\n          <div class=\"qq-uploader-buttonText-value\">\n            Upload a File\n          <\/div>\n          <input class=\"form-upload-multiple\" type=\"file\" id=\"input_9\" name=\"q9_videosAnd[]\" multiple=\"multiple\" file-accept=\"pdf, doc, docx, xls, csv, txt, rtf, html, zip, mp3, wma, mpg, flv, avi, jpg, jpeg, png, gif\" file-maxsize=\"10240\" file-minsize=\"0\" file-limit=\"0\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textarea\" id=\"id_11\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_11\" for=\"input_11\"> Picture captions <\/label>\n        <div id=\"cid_11\" class=\"form-input jf-required\">\n          <textarea id=\"input_11\" class=\"form-textarea\" name=\"q11_pictureCaptions\" cols=\"40\" rows=\"6\"><\/textarea>\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\">\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=\"21523677539966\" \/>\n  <script type=\"text\/javascript\">\n  document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"21523677539966-21523677539966\";\n  <\/script>\n  <input type=\"hidden\" class=\"form-hidden\" value=\"985\" id=\"input_12\" name=\"q12_tmUgc\" \/>\n<\/form><\/body>\n<\/html>\n");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("21523677539966");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);}})();