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 i12411738860=new FrameBuilder("12411738860",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%2F12411738860\" 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%2F12411738860\" title=\"oEmbed Form\">\n<meta property=\"og:title\" content=\"TOCGranite.ie\" >\n<meta property=\"og:url\" content=\"http:\/\/www.www.jotform.com\/form\/12411738860\" >\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>TOCGranite.ie<\/title>\n<link href=\"\/\/cdn.jotfor.ms\/static\/formCss.css?3.3.2456\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" href=\"\/\/cdn.jotfor.ms\/css\/printForm.css?3.3.2456\" \/>\n<style type=\"text\/css\">\n    .form-label-left{\n        width:150px;\n    }\n    .form-line{\n        padding-top:10px;\n        padding-bottom:10px;\n    }\n    .form-label-right{\n        width:150px;\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:300px;\n        color:Black !important;\n        font-family:'Verdana';\n        font-size:12px;\n    }\n<\/style>\n\n<script src=\"\/\/cdn.jotfor.ms\/static\/prototype.forms.js\" type=\"text\/javascript\"><\/script>\n<script src=\"\/\/cdn.jotfor.ms\/static\/jotform.forms.js?3.3.2456\" 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_7').hint('ex: myname@example.com');\n       }, 20);\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,null,{\"name\":\"submitForm\",\"qid\":\"2\",\"text\":\"Submit Form\",\"type\":\"control_button\"},null,null,{\"name\":\"message\",\"qid\":\"5\",\"text\":\"Message\",\"type\":\"control_textarea\"},{\"name\":\"fullName6\",\"qid\":\"6\",\"text\":\"Full Name\",\"type\":\"control_fullname\"},{\"name\":\"email7\",\"qid\":\"7\",\"text\":\"E-mail\",\"type\":\"control_email\"},{\"name\":\"phoneNumber8\",\"qid\":\"8\",\"text\":\"Phone Number\",\"type\":\"control_phone\"},{\"name\":\"enterThe9\",\"qid\":\"9\",\"text\":\"Enter the message as it's shown\",\"type\":\"control_captcha\"}]);\n   setTimeout(function() {\nJotForm.paymentExtrasOnTheFly([null,null,{\"name\":\"submitForm\",\"qid\":\"2\",\"text\":\"Submit Form\",\"type\":\"control_button\"},null,null,{\"name\":\"message\",\"qid\":\"5\",\"text\":\"Message\",\"type\":\"control_textarea\"},{\"name\":\"fullName6\",\"qid\":\"6\",\"text\":\"Full Name\",\"type\":\"control_fullname\"},{\"name\":\"email7\",\"qid\":\"7\",\"text\":\"E-mail\",\"type\":\"control_email\"},{\"name\":\"phoneNumber8\",\"qid\":\"8\",\"text\":\"Phone Number\",\"type\":\"control_phone\"},{\"name\":\"enterThe9\",\"qid\":\"9\",\"text\":\"Enter the message as it's shown\",\"type\":\"control_captcha\"}]);}, 20); \n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"https:\/\/submit.jotform.co\/submit\/12411738860\/\" method=\"post\" name=\"form_12411738860\" id=\"12411738860\" accept-charset=\"utf-8\">\n  <input type=\"hidden\" name=\"formID\" value=\"12411738860\" \/>\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_6\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_6\" for=\"first_6\">\n          Full Name\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_6\" class=\"form-input jf-required\">\n          <div data-wrapper-react=\"true\">\n            <span class=\"form-sub-label-container\" style=\"vertical-align:top;\">\n              <input type=\"text\" id=\"first_6\" name=\"q6_fullName6[first]\" class=\"form-textbox validate[required]\" size=\"10\" value=\"\" data-component=\"first\" required=\"\" \/>\n              <label class=\"form-sub-label\" for=\"first_6\" 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 type=\"text\" id=\"last_6\" name=\"q6_fullName6[last]\" class=\"form-textbox validate[required]\" size=\"15\" value=\"\" data-component=\"last\" required=\"\" \/>\n              <label class=\"form-sub-label\" for=\"last_6\" id=\"sublabel_last\" style=\"min-height:13px;\"> Last Name <\/label>\n            <\/span>\n          <\/div>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_email\" id=\"id_7\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_7\" for=\"input_7\">\n          E-mail\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_7\" class=\"form-input jf-required\">\n          <input type=\"email\" id=\"input_7\" name=\"q7_email7\" class=\"form-textbox validate[required, Email]\" size=\"30\" value=\"\" placeholder=\"ex: myname@example.com\" data-component=\"email\" required=\"\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_phone\" id=\"id_8\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_8\" for=\"input_8_area\">\n          Phone Number\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_8\" class=\"form-input jf-required\">\n          <div data-wrapper-react=\"true\">\n            <span class=\"form-sub-label-container\" style=\"vertical-align:top;\">\n              <input type=\"tel\" id=\"input_8_area\" name=\"q8_phoneNumber8[area]\" class=\"form-textbox validate[required]\" size=\"3\" value=\"\" data-component=\"areaCode\" required=\"\" \/>\n              <span class=\"phone-separate\">\n                \u00a0-\n              <\/span>\n              <label class=\"form-sub-label\" for=\"input_8_area\" id=\"sublabel_area\" style=\"min-height:13px;\"> Area Code <\/label>\n            <\/span>\n            <span class=\"form-sub-label-container\" style=\"vertical-align:top;\">\n              <input type=\"tel\" id=\"input_8_phone\" name=\"q8_phoneNumber8[phone]\" class=\"form-textbox validate[required]\" size=\"8\" value=\"\" data-component=\"phone\" required=\"\" \/>\n              <label class=\"form-sub-label\" for=\"input_8_phone\" id=\"sublabel_phone\" style=\"min-height:13px;\"> Phone Number <\/label>\n            <\/span>\n          <\/div>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textarea\" id=\"id_5\">\n        <label class=\"form-label form-label-left form-label-auto\" id=\"label_5\" for=\"input_5\"> Message <\/label>\n        <div id=\"cid_5\" class=\"form-input\">\n          <textarea id=\"input_5\" class=\"form-textarea\" name=\"q5_message\" cols=\"30\" rows=\"8\" data-component=\"textarea\"><\/textarea>\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          Enter the message as it's shown\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(\/\/cdn.jotfor.ms\/images\/loader-big.gif) no-repeat center;\" src=\"\/\/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=\"\/\/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_2\">\n        <div id=\"cid_2\" class=\"form-input-wide\">\n          <div style=\"text-align:left;\" class=\"form-buttons-wrapper\">\n            <button id=\"input_2\" type=\"submit\" class=\"form-submit-button\" data-component=\"button\">\n              Submit Form\n            <\/button>\n            <span>\n              \u00a0\n            <\/span>\n            <button id=\"input_reset_2\" type=\"reset\" class=\"form-submit-reset\" data-component=\"button\">\n              Clear Form\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=\"12411738860\" \/>\n  <script type=\"text\/javascript\">\n  document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"12411738860-12411738860\";\n  <\/script>\n<\/form><\/body>\n<\/html>\n","TOCGranite.ie");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("12411738860");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;case"initialIframeDesign":var http=new XMLHttpRequest();var reqURL='https://www.jotform.com/API/';if(args[1]!=='live'){reqURL='https://'+args[1]+'.jotform.pro/API/';}
var url=reqURL+'form/'+args[2]+'/properties&parseJSON=1';var indexOfStyleJSON=e.data.split(":",3).join(":").length;var formStyleJSON=e.data.substring(indexOfStyleJSON);var params='properties='+JSON.stringify({'embedStyleJSON':formStyleJSON});http.open('POST',url,true);http.setRequestHeader('Content-type','application/x-www-form-urlencoded');http.send(params);break;}};if(window.addEventListener){window.addEventListener("message",handleIFrameMessage,false);}else if(window.attachEvent){window.attachEvent("onmessage",handleIFrameMessage);}})();