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\" 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 i50424695558969=new FrameBuilder("50424695558969",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%2F50424695558969\" 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%2F50424695558969\" title=\"oEmbed Form\">\n<meta property=\"og:title\" content=\"Short IOY Form\" >\n<meta property=\"og:url\" content=\"http:\/\/www.jotformpro.com\/form\/50424695558969\" >\n<meta property=\"og:description\" content=\"Please click the link to complete this form.\">\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>Short IOY Form<\/title>\n<link href=\"https:\/\/cdn.jotfor.ms\/static\/formCss.css?3.3.16631\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" href=\"https:\/\/cdn.jotfor.ms\/css\/printForm.css?3.3.16631\" \/>\n<style type=\"text\/css\">\n    .form-label-left{\n        width:100px !important;\n    }\n    .form-line{\n        padding-top:10px;\n        padding-bottom:10px;\n    }\n    .form-label-right{\n        width:100px !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:20px;\n        width:280px;\n        background: #FFFFFF;\n        color:#000000 !important;\n        font-family:'Verdana';\n        font-size:12px;\n    }\n<\/style>\n\n<style type=\"text\/css\" id=\"form-designer-style\">\n    \/* Injected CSS Code *\/\n.form-textbox:focus, .form-textarea:focus{\noutline: none;\n}.form-all h3{\nmargin:0;\nbackground:#57a700 url(\/\/us-cms.jotservers.com\/uploads\/image_upload\/image_upload\/global\/6138_form_heading.gif) repeat-x;\ncolor:#fff;\nfont-size:20px;\nborder:1px solid #57a700;\nborder-bottom:none;\nborder-radius:3px;\n-webkit-border-radius:3px;\n-moz-border-radius:3px;\nmargin-left: 1px;\n}\n.form-all h3 span{\ndisplay:block;\npadding:10px 20px;\nbackground:url(\/\/us-cms.jotservers.com\/uploads\/image_upload\/image_upload\/global\/6139_form_ico.gif) no-repeat 93% 50%;\n}\n.form-section{\nborder-radius:5px;\n-webkit-border-radius:5px;\n-moz-border-radius:5px;\npadding-left: 4px;\nmargin:0;\nborder:1px;\n\/*border-top:3px solid #000;*\/\nbackground:#FF;\n}.form-all input, .form-all textarea{\nfont-family:verdana;\nwidth:240px;\nborder: 1px solid #CFCFCF;\nborder-radius:3px;\n-webkit-border-radius:3px;\n-moz-border-radius:3px;\npadding:5px 3px;\ncolor:#000;\n-webkit-box-shadow: inset 0 2px #DDD;\n-moz-box-shadow: inset 0 2px #DDD;\nbox-shadow: inset 0 2px #E9E7E7;\n}.form-submit-button{\npadding:0 20px;\nheight:32px;\nline-height:32px;\nborder:1px solid #70ad2e;\nbackground:#5aae00 url(\/\/us-cms.jotservers.com\/uploads\/image_upload\/image_upload\/global\/6141_form_button.gif) repeat-x;\ncolor:#fff;\ncursor:pointer;\ntext-align:center;\nborder-radius:3px;\n-webkit-border-radius:3px;\n-moz-border-radius:3px;\n}.form-line{\npadding:5px !important;\n}\n.form-all{\npadding-top: 3px;\nborder:1px solid #CACACA;\nbox-shadow:0 0 5px #CACACA;\n-webkit-box-shadow:0 0 5px #CACACA;\n-moz-box-shadow:0 0 5px #CACACA;\nborder-radius:3px;\n-webkit-border-radius:3px;\n-moz-border-radius:3px;\n}.form-html {\npadding: 0px !important;\npadding-right: 7px !important;\n}\n.form-error-message {\ndisplay: none !important;\n}\n.form-line-error {\nbackground:none repeat scroll 0 0;\n}\n.form-button-error {\nfont-size: 11px !important;\n}\n.form-validation-error {\nborder: 1px solid red !important;\n}.form-captcha, .form-captcha:hover {\nborder:none;\nbackground:none;\npadding:0px !important;\n}\n.form-captcha-image {\nborder:0px;\nbackground:none;\n-moz-border-radius:0px !important;\n-webkit-border-radius:0px !important;\nborder-radius:0px !important;\n}\n#input_7{\nwidth:142px !important;\nmax-width:142px !important;\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.16631\" type=\"text\/javascript\"><\/script>\n<script type=\"text\/javascript\">\n var jsTime = setInterval(function(){try{\n   JotForm.jsForm = true;\n\n   JotForm.init(function(){\nJotForm.initCaptcha('input_7');\n$('input_7_reload').observe('click',function(){ JotForm.reloadCaptcha('input_7') })\n      JotForm.highlightInputs = false;\n      JotForm.alterTexts({\"alphabetic\":\"This field can only contain letters\",\"alphanumeric\":\"This field can only contain letters and numbers.\",\"confirmClearForm\":\"Are you sure you want to clear the form\",\"confirmEmail\":\"E-mail does not match\",\"email\":\"Enter a valid e-mail address\",\"incompleteFields\":\"Please complete required (*) fields.\",\"lessThan\":\"Your score should be less than\",\"numeric\":\"This field can only contain numeric values\",\"pleaseWait\":\"Please wait...\",\"required\":\"This field is required.\",\"uploadExtensions\":\"You can only upload following files:\",\"uploadFilesize\":\"File size cannot be bigger than:\"});\n\tJotForm.clearFieldOnHide=\"disable\";\n   });\n\n   clearInterval(jsTime);\n }catch(e){}}, 1000);\n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"https:\/\/submit.jotformpro.com\/submit\/50424695558969\/\" method=\"post\" name=\"form_50424695558969\" id=\"50424695558969\" accept-charset=\"utf-8\">\n  <input type=\"hidden\" name=\"formID\" value=\"50424695558969\" \/>\n  <div class=\"form-all\">\n    <ul class=\"form-section page-section\">\n      <li class=\"form-line\" data-type=\"control_text\" id=\"id_6\">\n        <div id=\"cid_6\" class=\"form-input-wide\">\n          <div id=\"text_6\" class=\"form-html\" data-component=\"text\">\n            <h3>\n              <span>\n                Suggest an Invention\n              <\/span>\n            <\/h3>\n          <\/div>\n        <\/div>\n      <\/li>\n      <li class=\"form-line form-line-column form-col-1 jf-required\" data-type=\"control_textbox\" id=\"id_1\">\n        <label class=\"form-label form-label-top\" id=\"label_1\" for=\"input_1\">\n          Invention:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_1\" class=\"form-input-wide jf-required\">\n          <input type=\"text\" id=\"input_1\" name=\"q1_invention\" data-type=\"input-textbox\" class=\"form-textbox validate[required]\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_2\">\n        <label class=\"form-label form-label-top form-label-auto\" id=\"label_2\" for=\"input_2\"> Inventor: <\/label>\n        <div id=\"cid_2\" class=\"form-input-wide jf-required\">\n          <input type=\"text\" id=\"input_2\" name=\"q2_inventor\" data-type=\"input-textbox\" class=\"form-textbox\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_textbox\" id=\"id_8\">\n        <label class=\"form-label form-label-top form-label-auto\" id=\"label_8\" for=\"input_8\"> Contact info for Inventor (if known): <\/label>\n        <div id=\"cid_8\" class=\"form-input-wide jf-required\">\n          <input type=\"text\" id=\"input_8\" name=\"q8_contactInfo\" 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_textbox\" id=\"id_3\">\n        <label class=\"form-label form-label-top form-label-auto\" id=\"label_3\" for=\"input_3\">\n          Your Name:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_3\" class=\"form-input-wide jf-required\">\n          <input type=\"text\" id=\"input_3\" name=\"q3_yourName\" data-type=\"input-textbox\" class=\"form-textbox validate[required]\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_textbox\" id=\"id_9\">\n        <label class=\"form-label form-label-top form-label-auto\" id=\"label_9\" for=\"input_9\">\n          Your Email:\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_9\" class=\"form-input-wide jf-required\">\n          <input type=\"text\" id=\"input_9\" name=\"q9_yourEmail\" data-type=\"input-textbox\" class=\"form-textbox validate[required, Email]\" size=\"30\" value=\"\" placeholder=\" \" data-component=\"textbox\" \/>\n        <\/div>\n      <\/li>\n      <li class=\"form-line jf-required\" data-type=\"control_captcha\" id=\"id_7\">\n        <label class=\"form-label form-label-top form-label-auto\" id=\"label_7\" for=\"input_7\">\n          Enter the message as it's shown\n          <span class=\"form-required\">\n            *\n          <\/span>\n        <\/label>\n        <div id=\"cid_7\" class=\"form-input-wide jf-required\">\n          <div class=\"form-captcha\" data-component=\"captcha\">\n            <label for=\"input_7\"> <img alt=\"Captcha - Reload if not displayed\" id=\"input_7_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_7\" class=\"form-textbox validate[required]\" name=\"captcha\" style=\"width:130px;\" \/>\n              <img src=\"https:\/\/cdn.jotfor.ms\/images\/reload.png\" alt=\"Reload\" style=\"cursor:pointer;vertical-align:middle;\" id=\"input_7_reload\" \/>\n              <input type=\"hidden\" name=\"captcha_id\" id=\"input_7_captcha_id\" value=\"0\" \/>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/li>\n      <li class=\"form-line\" data-type=\"control_button\" id=\"id_5\">\n        <div id=\"cid_5\" class=\"form-input-wide\">\n          <div style=\"text-align:left;\" class=\"form-buttons-wrapper\">\n            <button id=\"input_5\" type=\"submit\" class=\"form-submit-button\" data-component=\"button\">\n              Send\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=\"50424695558969\" \/>\n  <script type=\"text\/javascript\">\n  document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"50424695558969-50424695558969\";\n  <\/script>\n<\/form><\/body>\n<\/html>\n");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("50424695558969");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);}})();