/** * Includes a Form with javascript * @param {Object} formId * @param {Object} initialHeight * @param {Object} iframeCode */ function FrameBuilder (formId, initialHeight, iframeCode){ this.formId = formId; this.initialHeight = initialHeight; this.iframeCode = iframeCode; this.frame = null; this.timeInterval= 200; // initialize function for object this.init = function(){ this.createFrame(); this.addFrameContent(this.iframeCode); }; // Create the frame this.createFrame = function(){ var htmlCode = "" document.write(htmlCode); // also get the frame for future use. this.frame = document.getElementById(this.formId); // set the time on the on load event of the frame this.addEvent (this.frame, 'load', this.bindMethod(this.setTimer, this)); }; // add event function for different browsers 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">
'+ ''+ ' 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);}}, 10);'); var frameDocument = (this.frame.contentWindow) ? this.frame.contentWindow : (this.frame.contentDocument.document) ? this.frame.contentDocument.document : this.frame.contentDocument; frameDocument.document.open(); frameDocument.document.write(string); setTimeout( function(){frameDocument.document.close();},200); }; this.setTimer = function(){ var self = this; this.interval = setTimeout(function(){self.changeHeight();},this.timeInterval); }; this.changeHeight = function (){ var actualHeight = this.getBodyHeight(); var currentHeight = this.getViewPortHeight(); 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.getBodyHeight = function (){ var height; var scrollHeight; var offsetHeight; try{ // Prevent IE from throw errors if (this.frame.contentWindow.document.height){ height = this.frame.contentWindow.document.height; } else if (this.frame.contentWindow.document.body){ 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; } if (scrollHeight && offsetHeight){ height = Math.max(scrollHeight, offsetHeight); } } }catch(e){ } return height; }; this.getViewPortHeight = function(){ var height = 0; try{ // Prevent IE from throw errors 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(); } new FrameBuilder("93611942140" ,"", "\n\n\nForm<\/title>\n<link type=\"text\/css\" rel=\"stylesheet\" href=\"http:\/\/www.jotform.com\/css\/styles\/form.css\"\/><link type=\"text\/css\" rel=\"stylesheet\" href=\"http:\/\/www.jotform.com\/css\/styles\/industrial_dark.css\" \/><style type=\"text\/css\">\n .form-label{\n width:200px !important;\n }\n .form-label-left{\n width:200px !important;\n }\n .form-line{\n padding:5px;\n }\n .form-label-right{\n width:200px !important;\n }\n body, html{\n margin:0;\n padding:0;\n background:#000000;\n }\n\n .form-all{\n margin:0px auto;\n padding-top:20px;\n width:550px !important;\n background:#000000;\n color:#FFFFFF;\n font-family:Tahoma;\n font-size:14px;\n }\n<\/style>\n\n<link href=\"http:\/\/www.jotform.com\/css\/calendarview.css\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<script src=\"http:\/\/www.jotform.com\/js\/prototype.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/www.jotform.com\/js\/protoplus.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/www.jotform.com\/js\/protoplus-ui.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/www.jotform.com\/js\/jotform.js?v3\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/www.jotform.com\/js\/location.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/www.jotform.com\/js\/calendarview.js\" type=\"text\/javascript\"><\/script>\n<script type=\"text\/javascript\">\nvar jsTime = setInterval(function(){try{\n JotForm.init();\nclearInterval(jsTime);}catch(e){}}, 10);<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"http:\/\/www.jotform.com\/submit.php\" method=\"post\" name=\"form_93611942140\" id=\"93611942140\" accept-charset=\"utf-8\">\n <input type=\"hidden\" name=\"formID\" value=\"93611942140\" \/>\n <div class=\"form-all\">\n <ul class=\"form-section\">\n <li class=\"form-line\" id=\"id_2\">\n <label class=\"form-label-left\" id=\"label_2\" for=\"input_2\"> First Name <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_2\" name=\"q2_firstName\" size=\"30\" maxlength=\"200\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_13\">\n <label class=\"form-label-left\" id=\"label_13\" for=\"input_13\"> Last Name <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_13\" name=\"q13_lastName\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_9\">\n <label class=\"form-label-left\" id=\"label_9\" for=\"input_9\"> Company <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_9\" name=\"q9_company\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_10\">\n <label class=\"form-label-left\" id=\"label_10\" for=\"input_10\"> Street Address <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_10\" name=\"q10_streetAddress\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_14\">\n <label class=\"form-label-left\" id=\"label_14\" for=\"input_14\"> City <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_14\" name=\"q14_city\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_16\">\n <label class=\"form-label-left\" id=\"label_16\" for=\"input_16\"> State <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_16\" name=\"q16_state\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_15\">\n <label class=\"form-label-left\" id=\"label_15\" for=\"input_15\"> Zip <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_15\" name=\"q15_zip\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_6\">\n <label class=\"form-label-left\" id=\"label_6\" for=\"input_6\"> Home Phone <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_6\" name=\"q6_homePhone\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_11\">\n <label class=\"form-label-left\" id=\"label_11\" for=\"input_11\"> Business Phone <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_11\" name=\"q11_businessPhone\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_3\">\n <label class=\"form-label-left\" id=\"label_3\" for=\"input_3\"> E-mail <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_3\" name=\"q3_email\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_22\">\n <label class=\"form-label-left\" id=\"label_22\" for=\"input_22\"> Event Location <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_22\" name=\"q22_eventLocation\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_19\">\n <label class=\"form-label-left\" id=\"label_19\" for=\"input_19\"> Date of Event <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_19\" name=\"q19_dateOf\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_20\">\n <label class=\"form-label-left\" id=\"label_20\" for=\"input_20\"> Start Time <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_20\" name=\"q20_startTime\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_21\">\n <label class=\"form-label-left\" id=\"label_21\" for=\"input_21\"> End Time <\/label>\n <div class=\"form-input\">\n <input type=\"text\" class=\"form-textbox\" id=\"input_21\" name=\"q21_endTime\" size=\"30\" maxlength=\"100\" \/>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_24\">\n <label class=\"form-label-left\" id=\"label_24\" for=\"input_24\"> Type of Event <\/label>\n <div class=\"form-input\">\n <div class=\"form-single-column\"><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_24_0\" name=\"q24_typeOf[]\" value=\"Commercial Rental\" \/>\n <label for=\"input_24_0\"> Commercial Rental <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_24_1\" name=\"q24_typeOf[]\" value=\"Backyard Party\" \/>\n <label for=\"input_24_1\"> Backyard Party <\/label><\/span><span class=\"clearfix\"><\/span>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_23\">\n <label class=\"form-label-left\" id=\"label_23\" for=\"input_23\"> Items Requested <\/label>\n <div class=\"form-input\">\n <div class=\"form-single-column\"><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_0\" name=\"q23_itemsRequested[]\" value=\"Tweety Cage Bounce\" \/>\n <label for=\"input_23_0\"> Tweety Cage Bounce <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_1\" name=\"q23_itemsRequested[]\" value=\"Splash Down Slide\" \/>\n <label for=\"input_23_1\"> Splash Down Slide <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_2\" name=\"q23_itemsRequested[]\" value=\"Obstacle Course\" \/>\n <label for=\"input_23_2\"> Obstacle Course <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_3\" name=\"q23_itemsRequested[]\" value=\"Looney Tunes Bounce\" \/>\n <label for=\"input_23_3\"> Looney Tunes Bounce <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_4\" name=\"q23_itemsRequested[]\" value=\"Mini Jungle 3 in 1 Combo\" \/>\n <label for=\"input_23_4\"> Mini Jungle 3 in 1 Combo <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_5\" name=\"q23_itemsRequested[]\" value=\"Crayon 3 in 1 Combo\" \/>\n <label for=\"input_23_5\"> Crayon 3 in 1 Combo <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_6\" name=\"q23_itemsRequested[]\" value=\"Boom Blaster\" \/>\n <label for=\"input_23_6\"> Boom Blaster <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_7\" name=\"q23_itemsRequested[]\" value=\"Pitchburst\" \/>\n <label for=\"input_23_7\"> Pitchburst <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_8\" name=\"q23_itemsRequested[]\" value=\"Pucker Powder\" \/>\n <label for=\"input_23_8\"> Pucker Powder <\/label><\/span><span class=\"clearfix\"><\/span><span class=\"form-checkbox-item\" style=\"clear:left;\"><input type=\"checkbox\" class=\"form-checkbox\" id=\"input_23_9\" name=\"q23_itemsRequested[]\" value=\"Generator\" \/>\n <label for=\"input_23_9\"> Generator <\/label><\/span><span class=\"clearfix\"><\/span>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_7\">\n <label class=\"form-label-left\" id=\"label_7\" for=\"input_7\"> Message <\/label>\n <div class=\"form-input\">\n <textarea id=\"input_7\" class=\"form-textarea\" name=\"q7_message\" cols=\"50\" rows=\"3\"><\/textarea>\n <\/div>\n <\/li>\n <li class=\"form-line\" id=\"id_1\">\n <div class=\"form-input-wide\">\n <div style=\"margin-left:206px\">\n <button id=\"input_1\" type=\"submit\" class=\"form-submit-button\">\n Submit Request\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=\"93611942140\" \/>\n <script type=\"text\/javascript\">\n document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"93611942140-93611942140\";\n <\/script>\n<\/form><\/body>\n<\/html>\n"); <script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>