Want to HaveĀ a Super Fun Cub Scout Event?

Justin provides a super fun magic show custom tailored to cub scouts. Justin was a former cub scout and boy scout as a kid. Then later, was a scout leader for his own kid. So he understands how cub scouts works first hand.

In his Cub Scout show

  • All Kids get to participate, even if they don’t go on stage. This is important because kids love magic and want to participate, but don’t always have that chance with other magicians.
  • Every level of scout from Tiger Cubs to Weebelos are used in the show for different routines. This makes each level of scout feel special.
  • Some of the stories in the show relate to what Justin learned in scouting. This makes the point that scouting is important and fun.
  • The show is squeaky clean and there is no “blue” humor. You won’t be embarrassed by Justin’s show.
<style><!-- [et_pb_line_break_holder] --> #_form_7_ { font-size:14px; line-height:1.6; font-family:arial, helvetica, sans-serif; margin:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ * { outline:0; }<!-- [et_pb_line_break_holder] --> ._form_hide { display:none; visibility:hidden; }<!-- [et_pb_line_break_holder] --> ._form_show { display:block; visibility:visible; }<!-- [et_pb_line_break_holder] --> #_form_7_._form-top { top:0; }<!-- [et_pb_line_break_holder] --> #_form_7_._form-bottom { bottom:0; }<!-- [et_pb_line_break_holder] --> #_form_7_._form-left { left:0; }<!-- [et_pb_line_break_holder] --> #_form_7_._form-right { right:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ input[type="text"],#_form_7_ input[type="date"],#_form_7_ textarea { padding:6px; height:auto; border:#979797 1px solid; border-radius:4px; color:#000 !important; font-size:13px; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; }<!-- [et_pb_line_break_holder] --> #_form_7_ textarea { resize:none; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._submit { -webkit-appearance:none; cursor:pointer; font-family:arial, sans-serif; font-size:14px; text-align:center; background:#333 !important; border:0 !important; -moz-border-radius:4px !important; -webkit-border-radius:4px !important; border-radius:4px !important; color:#fff !important; padding:10px !important; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._close-icon { cursor:pointer; background-image:url('https://d226aj4ao1t61q.cloudfront.net/esfkyjh1u_forms-close-dark.png'); background-repeat:no-repeat; background-size:14.2px 14.2px; position:absolute; display:block; top:11px; right:9px; overflow:hidden; width:16.2px; height:16.2px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._close-icon:before { position:relative; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-body { margin-bottom:30px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-image-left { width:150px; float:left; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-content-right { margin-left:164px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-branding { color:#fff; font-size:10px; clear:both; text-align:left; margin-top:30px; font-weight:100; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-branding ._logo { display:block; width:130px; height:14px; margin-top:6px; background-image:url('https://d226aj4ao1t61q.cloudfront.net/hh9ujqgv5_aclogo_li.png'); background-size:130px auto; background-repeat:no-repeat; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-label,#_form_7_ ._form_element ._form-label { font-weight:bold; margin-bottom:5px; display:block; }<!-- [et_pb_line_break_holder] --> #_form_7_._dark ._form-branding { color:#333; }<!-- [et_pb_line_break_holder] --> #_form_7_._dark ._form-branding ._logo { background-image:url('https://d226aj4ao1t61q.cloudfront.net/jftq2c8s_aclogo_dk.png'); }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element { position:relative; margin-bottom:10px; font-size:0; max-width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element * { font-size:14px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element._clear { clear:both; width:100%; float:none; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element._clear:after { clear:left; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element input[type="text"],#_form_7_ ._form_element input[type="date"],#_form_7_ ._form_element select,#_form_7_ ._form_element textarea:not(.g-recaptcha-response) { display:block; width:100%; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._field-wrapper { position:relative; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._inline-style { float:left; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._inline-style input[type="text"] { width:150px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._inline-style:not(._clear) + ._inline-style:not(._clear) { margin-left:20px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element img._form-image { max-width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._clear-element { clear:left; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._full_width { width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_full_field { display:block; width:100%; margin-bottom:10px; }<!-- [et_pb_line_break_holder] --> #_form_7_ input[type="text"]._has_error,#_form_7_ textarea._has_error { border:#f37c7b 1px solid; }<!-- [et_pb_line_break_holder] --> #_form_7_ input[type="checkbox"]._has_error { outline:#f37c7b 1px solid; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error { display:block; position:absolute; font-size:13px; z-index:10000001; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error._above { padding-bottom:4px; top:-41px; right:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error._below { padding-top:4px; top:100%; right:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error._above ._error-arrow { bottom:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid #f37c7b; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error._below ._error-arrow { top:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:5px solid #f37c7b; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error-inner { padding:8px 12px; background-color:#f37c7b; font-size:13px; font-family:arial, sans-serif; color:#fff; text-align:center; text-decoration:none; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error-inner._form_error { margin-bottom:5px; text-align:left; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._button-wrapper ._error-inner._form_error { position:static; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error-inner._no_arrow { margin-bottom:10px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error-arrow { position:absolute; width:0; height:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._error-html { margin-bottom:10px; }<!-- [et_pb_line_break_holder] --> .pika-single { z-index:10000001 !important; }<!-- [et_pb_line_break_holder] --> @media all and (min-width:320px) and (max-width:667px) { ::-webkit-scrollbar { display:none; }<!-- [et_pb_line_break_holder] --> #_form_7_ { margin:0; width:100%; min-width:100%; max-width:100%; box-sizing:border-box; }<!-- [et_pb_line_break_holder] --> #_form_7_ * { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; font-size:1em; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-content { margin:0; width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-inner { display:block; min-width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-title,#_form_7_ ._inline-style { margin-top:0; margin-right:0; margin-left:0; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-title { font-size:1.2em; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form_element { margin:0 0 20px; padding:0; width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-element,#_form_7_ ._inline-style,#_form_7_ input[type="text"],#_form_7_ label,#_form_7_ p,#_form_7_ textarea:not(.g-recaptcha-response) { float:none; display:block; width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._row._checkbox-radio label { display:inline; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._row,#_form_7_ p,#_form_7_ label { margin-bottom:0.7em; width:100%; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._row input[type="checkbox"],#_form_7_ ._row input[type="radio"] { margin:0 !important; vertical-align:middle !important; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._row input[type="checkbox"] + span label { display:inline; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._row span label { margin:0 !important; width:initial !important; vertical-align:middle !important; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-image { max-width:100%; height:auto !important; }<!-- [et_pb_line_break_holder] --> #_form_7_ input[type="text"] { padding-left:10px; padding-right:10px; font-size:16px; line-height:1.3em; -webkit-appearance:none; }<!-- [et_pb_line_break_holder] --> #_form_7_ input[type="radio"],#_form_7_ input[type="checkbox"] { display:inline-block; width:1.3em; height:1.3em; font-size:1em; margin:0 0.3em 0 0; vertical-align:baseline; }<!-- [et_pb_line_break_holder] --> #_form_7_ button[type="submit"] { padding:20px; font-size:1.5em; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._inline-style { margin:20px 0 0 !important; }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> #_form_7_ { position:relative; text-align:left; margin:25px auto 0; padding:20px; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; *zoom:1; background:#fff !important; border:0px solid #b0b0b0 !important; width:500px; -moz-border-radius:0px !important; -webkit-border-radius:0px !important; border-radius:0px !important; color:#000 !important; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-title { font-size:22px; line-height:22px; font-weight:600; margin-bottom:0; }<!-- [et_pb_line_break_holder] --> #_form_7_:before,#_form_7_:after { content:" "; display:table; }<!-- [et_pb_line_break_holder] --> #_form_7_:after { clear:both; }<!-- [et_pb_line_break_holder] --> #_form_7_._inline-style { width:auto; display:inline-block; }<!-- [et_pb_line_break_holder] --> #_form_7_._inline-style input[type="text"],#_form_7_._inline-style input[type="date"] { padding:10px 12px; }<!-- [et_pb_line_break_holder] --> #_form_7_._inline-style button._inline-style { position:relative; top:27px; }<!-- [et_pb_line_break_holder] --> #_form_7_._inline-style p { margin:0; }<!-- [et_pb_line_break_holder] --> #_form_7_._inline-style ._button-wrapper { position:relative; margin:27px 12.5px 0 20px; }<!-- [et_pb_line_break_holder] --> #_form_7_ ._form-thank-you { position:relative; left:0; right:0; text-align:center; font-size:18px; }<!-- [et_pb_line_break_holder] --> @media all and (min-width:320px) and (max-width:667px) { #_form_7_._inline-form._inline-style ._inline-style._button-wrapper { margin-top:20px !important; margin-left:0 !important; }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --></style><!-- [et_pb_line_break_holder] --><!-- Date Picker --><!-- [et_pb_line_break_holder] --><link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"><!-- [et_pb_line_break_holder] --><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><!-- [et_pb_line_break_holder] --><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->$(function() {<!-- [et_pb_line_break_holder] -->$( "#datepicker" ).datepicker({<!-- [et_pb_line_break_holder] -->dateFormat: "DD, MM d, yy",<!-- [et_pb_line_break_holder] -->numberOfMonths: 2,<!-- [et_pb_line_break_holder] -->showButtonPanel: true<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></script><!-- [et_pb_line_break_holder] --><!-- End Date Picker --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- This script is based on the javascript code of Roman Feldblum (web.developer@programmer.net) --><!-- [et_pb_line_break_holder] --><!-- Original script : http://javascript.internet.com/forms/format-phone-number.html --><!-- [et_pb_line_break_holder] --><!-- Original script is revised by Eralper Yilmaz (http://www.eralper.com) --><!-- [et_pb_line_break_holder] --><!-- Revised script : http://www.kodyaz.com --><!-- [et_pb_line_break_holder] --><script language="javascript"><!-- [et_pb_line_break_holder] -->var zChar = new Array(' ', '(', ')', '-', '.');<!-- [et_pb_line_break_holder] -->var maxphonelength = 13;<!-- [et_pb_line_break_holder] -->var phonevalue1;<!-- [et_pb_line_break_holder] -->var phonevalue2;<!-- [et_pb_line_break_holder] -->var cursorposition;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function ParseForNumber1(object){<!-- [et_pb_line_break_holder] -->phonevalue1 = ParseChar(object.value, zChar);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->function ParseForNumber2(object){<!-- [et_pb_line_break_holder] -->phonevalue2 = ParseChar(object.value, zChar);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function backspacerUP(object,e) {<!-- [et_pb_line_break_holder] -->if(e){<!-- [et_pb_line_break_holder] -->e = e<!-- [et_pb_line_break_holder] -->} else {<!-- [et_pb_line_break_holder] -->e = window.event<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->if(e.which){<!-- [et_pb_line_break_holder] -->var keycode = e.which<!-- [et_pb_line_break_holder] -->} else {<!-- [et_pb_line_break_holder] -->var keycode = e.keyCode<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->ParseForNumber1(object)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->if(keycode >= 48){<!-- [et_pb_line_break_holder] -->ValidatePhone(object)<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function backspacerDOWN(object,e) {<!-- [et_pb_line_break_holder] -->if(e){<!-- [et_pb_line_break_holder] -->e = e<!-- [et_pb_line_break_holder] -->} else {<!-- [et_pb_line_break_holder] -->e = window.event<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->if(e.which){<!-- [et_pb_line_break_holder] -->var keycode = e.which<!-- [et_pb_line_break_holder] -->} else {<!-- [et_pb_line_break_holder] -->var keycode = e.keyCode<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->ParseForNumber2(object)<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function GetCursorPosition(){<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var t1 = phonevalue1;<!-- [et_pb_line_break_holder] -->var t2 = phonevalue2;<!-- [et_pb_line_break_holder] -->var bool = false<!-- [et_pb_line_break_holder] -->for (i=0; i<t1.length; i++)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->if (t1.substring(i,1) != t2.substring(i,1)) {<!-- [et_pb_line_break_holder] -->if(!bool) {<!-- [et_pb_line_break_holder] -->cursorposition=i<!-- [et_pb_line_break_holder] -->bool=true<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function ValidatePhone(object){<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var p = phonevalue1<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->p = p.replace(/[^\d]*/gi,"")<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->if (p.length < 3) {<!-- [et_pb_line_break_holder] -->object.value=p<!-- [et_pb_line_break_holder] -->} else if(p.length==3){<!-- [et_pb_line_break_holder] -->pp=p;<!-- [et_pb_line_break_holder] -->d4=p.indexOf('(')<!-- [et_pb_line_break_holder] -->d5=p.indexOf(')')<!-- [et_pb_line_break_holder] -->if(d4==-1){<!-- [et_pb_line_break_holder] -->pp="("+pp;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->if(d5==-1){<!-- [et_pb_line_break_holder] -->pp=pp+")";<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->object.value = pp;<!-- [et_pb_line_break_holder] -->} else if(p.length>3 && p.length < 7){<!-- [et_pb_line_break_holder] -->p ="(" + p;<!-- [et_pb_line_break_holder] -->l30=p.length;<!-- [et_pb_line_break_holder] -->p30=p.substring(0,4);<!-- [et_pb_line_break_holder] -->p30=p30+")"<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->p31=p.substring(4,l30);<!-- [et_pb_line_break_holder] -->pp=p30+p31;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->object.value = pp;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->} else if(p.length >= 7){<!-- [et_pb_line_break_holder] -->p ="(" + p;<!-- [et_pb_line_break_holder] -->l30=p.length;<!-- [et_pb_line_break_holder] -->p30=p.substring(0,4);<!-- [et_pb_line_break_holder] -->p30=p30+")"<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->p31=p.substring(4,l30);<!-- [et_pb_line_break_holder] -->pp=p30+p31;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->l40 = pp.length;<!-- [et_pb_line_break_holder] -->p40 = pp.substring(0,8);<!-- [et_pb_line_break_holder] -->p40 = p40 + "-"<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->p41 = pp.substring(8,l40);<!-- [et_pb_line_break_holder] -->ppp = p40 + p41;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->object.value = ppp.substring(0, maxphonelength);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->GetCursorPosition()<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->if(cursorposition >= 0){<!-- [et_pb_line_break_holder] -->if (cursorposition == 0) {<!-- [et_pb_line_break_holder] -->cursorposition = 2<!-- [et_pb_line_break_holder] -->} else if (cursorposition <= 2) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 1<!-- [et_pb_line_break_holder] -->} else if (cursorposition <= 5) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 2<!-- [et_pb_line_break_holder] -->} else if (cursorposition == 6) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 2<!-- [et_pb_line_break_holder] -->} else if (cursorposition == 7) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 4<!-- [et_pb_line_break_holder] -->e1=object.value.indexOf(')')<!-- [et_pb_line_break_holder] -->e2=object.value.indexOf('-')<!-- [et_pb_line_break_holder] -->if (e1>-1 && e2>-1){<!-- [et_pb_line_break_holder] -->if (e2-e1 == 4) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition - 1<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->} else if (cursorposition < 11) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 3<!-- [et_pb_line_break_holder] -->} else if (cursorposition == 11) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition + 1<!-- [et_pb_line_break_holder] -->} else if (cursorposition >= 12) {<!-- [et_pb_line_break_holder] -->cursorposition = cursorposition<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var txtRange = object.createTextRange();<!-- [et_pb_line_break_holder] -->txtRange.moveStart( "character", cursorposition);<!-- [et_pb_line_break_holder] -->txtRange.moveEnd( "character", cursorposition - object.value.length);<!-- [et_pb_line_break_holder] -->txtRange.select();<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function ParseChar(sStr, sChar)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->if (sChar.length == null)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->zChar = new Array(sChar);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->else zChar = sChar;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->for (i=0; i<zChar.length; i++)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->sNewStr = "";<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var iStart = 0;<!-- [et_pb_line_break_holder] -->var iEnd = sStr.indexOf(sChar[i]);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->while (iEnd != -1)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->sNewStr += sStr.substring(iStart, iEnd);<!-- [et_pb_line_break_holder] -->iStart = iEnd + 1;<!-- [et_pb_line_break_holder] -->iEnd = sStr.indexOf(sChar[i], iStart);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->sNewStr += sStr.substring(sStr.lastIndexOf(sChar[i]) + 1, sStr.length);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->sStr = sNewStr;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->return sNewStr;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --></script><!-- [et_pb_line_break_holder] --><!-- End Telephone Formatter --><!-- [et_pb_line_break_holder] --><form method="POST" action="https://magicjustin.activehosted.com/proc.php" id="_form_7_" class="_form _form_7 _inline-form _dark" novalidate><!-- [et_pb_line_break_holder] --> <input type="hidden" name="u" value="7" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="f" value="7" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="s" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="c" value="0" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="m" value="0" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="act" value="sub" /><!-- [et_pb_line_break_holder] --> <input type="hidden" name="v" value="2" /><!-- [et_pb_line_break_holder] --> <div class="_form-content"><!-- [et_pb_line_break_holder] --> <div class="_form_element _x97506104 _full_width _clear" ><!-- [et_pb_line_break_holder] --> <div class="_form-title"><!-- [et_pb_line_break_holder] --> Fill out this form to contact Magic Justin or call 651-468-4758.<!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _x78160073 _full_width _clear" ><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _x68816730 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Full Name<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="fullname" placeholder="Type your name" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _x25060415 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Email*<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="email" placeholder="Type your email" required/><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _x29612971 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Phone<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="phone" placeholder="Type your phone number" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field4 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Address<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[4]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field5 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> City<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[5]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field9 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> State<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[9]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field6 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Zip Code<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[6]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field13 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> What type of event are you having?<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[13]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field7 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Date of Event?<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[7]" id="datepicker"value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field8 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> What time would you like the magic show to start?<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[8]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field10 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Event Location<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <input type="text" name="field[10]" value="" placeholder="" /><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form_element _field14 _full_width " ><!-- [et_pb_line_break_holder] --> <label class="_form-label"><!-- [et_pb_line_break_holder] --> Comments/Questions<!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> <div class="_field-wrapper"><!-- [et_pb_line_break_holder] --> <textarea name="field[14]" placeholder="" ></textarea><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_button-wrapper _full_width"><!-- [et_pb_line_break_holder] --> <button id="_form_7_submit" class="_submit" type="submit"><!-- [et_pb_line_break_holder] --> Contact Justin Now!<!-- [et_pb_line_break_holder] --> </button><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_clear-element"><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --> <div class="_form-thank-you" style="display:none;"><!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></form><script type="text/javascript"><!-- [et_pb_line_break_holder] -->window.cfields = {"4":"address","5":"city","9":"state","6":"zip_code","13":"event_type","7":"date_of_party","8":"magic_show_start_time","10":"party_location","14":"commentsquestions"};<!-- [et_pb_line_break_holder] -->window._show_thank_you = function(id, message, trackcmp_url) {<!-- [et_pb_line_break_holder] --> var form = document.getElementById('_form_' + id + '_'), thank_you = form.querySelector('._form-thank-you');<!-- [et_pb_line_break_holder] --> form.querySelector('._form-content').style.display = 'none';<!-- [et_pb_line_break_holder] --> thank_you.innerHTML = message;<!-- [et_pb_line_break_holder] --> thank_you.style.display = 'block';<!-- [et_pb_line_break_holder] --> if (typeof(trackcmp_url) != 'undefined' && trackcmp_url) {<!-- [et_pb_line_break_holder] --> // Site tracking URL to use after inline form submission.<!-- [et_pb_line_break_holder] --> _load_script(trackcmp_url);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (typeof window._form_callback !== 'undefined') window._form_callback(id);<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] -->window._show_error = function(id, message, html) {<!-- [et_pb_line_break_holder] --> var form = document.getElementById('_form_' + id + '_'), err = document.createElement('div'), button = form.querySelector('button'), old_error = form.querySelector('._form_error');<!-- [et_pb_line_break_holder] --> if (old_error) old_error.parentNode.removeChild(old_error);<!-- [et_pb_line_break_holder] --> err.innerHTML = message;<!-- [et_pb_line_break_holder] --> err.className = '_error-inner _form_error _no_arrow';<!-- [et_pb_line_break_holder] --> var wrapper = document.createElement('div');<!-- [et_pb_line_break_holder] --> wrapper.className = '_form-inner';<!-- [et_pb_line_break_holder] --> wrapper.appendChild(err);<!-- [et_pb_line_break_holder] --> button.parentNode.insertBefore(wrapper, button);<!-- [et_pb_line_break_holder] --> document.querySelector('[id^="_form"][id$="_submit"]').disabled = false;<!-- [et_pb_line_break_holder] --> if (html) {<!-- [et_pb_line_break_holder] --> var div = document.createElement('div');<!-- [et_pb_line_break_holder] --> div.className = '_error-html';<!-- [et_pb_line_break_holder] --> div.innerHTML = html;<!-- [et_pb_line_break_holder] --> err.appendChild(div);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] -->window._load_script = function(url, callback) {<!-- [et_pb_line_break_holder] --> var head = document.querySelector('head'), script = document.createElement('script'), r = false;<!-- [et_pb_line_break_holder] --> script.type = 'text/javascript';<!-- [et_pb_line_break_holder] --> script.charset = 'utf-8';<!-- [et_pb_line_break_holder] --> script.src = url;<!-- [et_pb_line_break_holder] --> if (callback) {<!-- [et_pb_line_break_holder] --> script.onload = script.onreadystatechange = function() {<!-- [et_pb_line_break_holder] --> if (!r && (!this.readyState || this.readyState == 'complete')) {<!-- [et_pb_line_break_holder] --> r = true;<!-- [et_pb_line_break_holder] --> callback();<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> head.appendChild(script);<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] -->(function() {<!-- [et_pb_line_break_holder] --> if (window.location.search.search("excludeform") !== -1) return false;<!-- [et_pb_line_break_holder] --> var getCookie = function(name) {<!-- [et_pb_line_break_holder] --> var match = document.cookie.match(new RegExp('(^|; )' + name + '=([^;]+)'));<!-- [et_pb_line_break_holder] --> return match ? match[2] : null;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> var setCookie = function(name, value) {<!-- [et_pb_line_break_holder] --> var now = new Date();<!-- [et_pb_line_break_holder] --> var time = now.getTime();<!-- [et_pb_line_break_holder] --> var expireTime = time + 1000 * 60 * 60 * 24 * 365;<!-- [et_pb_line_break_holder] --> now.setTime(expireTime);<!-- [et_pb_line_break_holder] --> document.cookie = name + '=' + value + '; expires=' + now + ';path=/';<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> var addEvent = function(element, event, func) {<!-- [et_pb_line_break_holder] --> if (element.addEventListener) {<!-- [et_pb_line_break_holder] --> element.addEventListener(event, func);<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> var oldFunc = element['on' + event];<!-- [et_pb_line_break_holder] --> element['on' + event] = function() {<!-- [et_pb_line_break_holder] --> oldFunc.apply(this, arguments);<!-- [et_pb_line_break_holder] --> func.apply(this, arguments);<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> var _removed = false;<!-- [et_pb_line_break_holder] --> var form_to_submit = document.getElementById('_form_7_');<!-- [et_pb_line_break_holder] --> var allInputs = form_to_submit.querySelectorAll('input, select, textarea'), tooltips = [], submitted = false;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var getUrlParam = function(name) {<!-- [et_pb_line_break_holder] --> var regexStr = '[\?&]' + name + '=([^&#]*)';<!-- [et_pb_line_break_holder] --> var results = new RegExp(regexStr, 'i').exec(window.location.href);<!-- [et_pb_line_break_holder] --> return results != undefined ? decodeURIComponent(results[1]) : false;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> for (var i = 0; i < allInputs.length; i++) {<!-- [et_pb_line_break_holder] --> var regexStr = "field\\[(\\d+)\\]";<!-- [et_pb_line_break_holder] --> var results = new RegExp(regexStr).exec(allInputs[i].name);<!-- [et_pb_line_break_holder] --> if (results != undefined) {<!-- [et_pb_line_break_holder] --> allInputs[i].dataset.name = window.cfields[results[1]];<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> allInputs[i].dataset.name = allInputs[i].name;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> var fieldVal = getUrlParam(allInputs[i].dataset.name);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (fieldVal) {<!-- [et_pb_line_break_holder] --> if (allInputs[i].type == "radio" || allInputs[i].type == "checkbox") {<!-- [et_pb_line_break_holder] --> if (allInputs[i].value == fieldVal) {<!-- [et_pb_line_break_holder] --> allInputs[i].checked = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> allInputs[i].value = fieldVal;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var remove_tooltips = function() {<!-- [et_pb_line_break_holder] --> for (var i = 0; i < tooltips.length; i++) {<!-- [et_pb_line_break_holder] --> tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> tooltips = [];<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var remove_tooltip = function(elem) {<!-- [et_pb_line_break_holder] --> for (var i = 0; i < tooltips.length; i++) {<!-- [et_pb_line_break_holder] --> if (tooltips[i].elem === elem) {<!-- [et_pb_line_break_holder] --> tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);<!-- [et_pb_line_break_holder] --> tooltips.splice(i, 1);<!-- [et_pb_line_break_holder] --> return;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var create_tooltip = function(elem, text) {<!-- [et_pb_line_break_holder] --> var tooltip = document.createElement('div'), arrow = document.createElement('div'), inner = document.createElement('div'), new_tooltip = {};<!-- [et_pb_line_break_holder] --> if (elem.type != 'radio' && elem.type != 'checkbox') {<!-- [et_pb_line_break_holder] --> tooltip.className = '_error';<!-- [et_pb_line_break_holder] --> arrow.className = '_error-arrow';<!-- [et_pb_line_break_holder] --> inner.className = '_error-inner';<!-- [et_pb_line_break_holder] --> inner.innerHTML = text;<!-- [et_pb_line_break_holder] --> tooltip.appendChild(arrow);<!-- [et_pb_line_break_holder] --> tooltip.appendChild(inner);<!-- [et_pb_line_break_holder] --> elem.parentNode.appendChild(tooltip);<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> tooltip.className = '_error-inner _no_arrow';<!-- [et_pb_line_break_holder] --> tooltip.innerHTML = text;<!-- [et_pb_line_break_holder] --> elem.parentNode.insertBefore(tooltip, elem);<!-- [et_pb_line_break_holder] --> new_tooltip.no_arrow = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> new_tooltip.tip = tooltip;<!-- [et_pb_line_break_holder] --> new_tooltip.elem = elem;<!-- [et_pb_line_break_holder] --> tooltips.push(new_tooltip);<!-- [et_pb_line_break_holder] --> return new_tooltip;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var resize_tooltip = function(tooltip) {<!-- [et_pb_line_break_holder] --> var rect = tooltip.elem.getBoundingClientRect();<!-- [et_pb_line_break_holder] --> var doc = document.documentElement, scrollPosition = rect.top - ((window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0));<!-- [et_pb_line_break_holder] --> if (scrollPosition < 40) {<!-- [et_pb_line_break_holder] --> tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _below';<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> tooltip.tip.className = tooltip.tip.className.replace(/ ?(_above|_below) ?/g, '') + ' _above';<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var resize_tooltips = function() {<!-- [et_pb_line_break_holder] --> if (_removed) return;<!-- [et_pb_line_break_holder] --> for (var i = 0; i < tooltips.length; i++) {<!-- [et_pb_line_break_holder] --> if (!tooltips[i].no_arrow) resize_tooltip(tooltips[i]);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var validate_field = function(elem, remove) {<!-- [et_pb_line_break_holder] --> var tooltip = null, value = elem.value, no_error = true;<!-- [et_pb_line_break_holder] --> remove ? remove_tooltip(elem) : false;<!-- [et_pb_line_break_holder] --> if (elem.type != 'checkbox') elem.className = elem.className.replace(/ ?_has_error ?/g, '');<!-- [et_pb_line_break_holder] --> if (elem.getAttribute('required') !== null) {<!-- [et_pb_line_break_holder] --> if (elem.type == 'radio' || (elem.type == 'checkbox' && /any/.test(elem.className))) {<!-- [et_pb_line_break_holder] --> var elems = form_to_submit.elements[elem.name];<!-- [et_pb_line_break_holder] --> if (!(elems instanceof NodeList || elems instanceof HTMLCollection) || elems.length <= 1) {<!-- [et_pb_line_break_holder] --> no_error = elem.checked;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> else {<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> for (var i = 0; i < elems.length; i++) {<!-- [et_pb_line_break_holder] --> if (elems[i].checked) no_error = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (!no_error) {<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, "Please select an option.");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> } else if (elem.type =='checkbox') {<!-- [et_pb_line_break_holder] --> var elems = form_to_submit.elements[elem.name], found = false, err = [];<!-- [et_pb_line_break_holder] --> no_error = true;<!-- [et_pb_line_break_holder] --> for (var i = 0; i < elems.length; i++) {<!-- [et_pb_line_break_holder] --> if (elems[i].getAttribute('required') === null) continue;<!-- [et_pb_line_break_holder] --> if (!found && elems[i] !== elem) return true;<!-- [et_pb_line_break_holder] --> found = true;<!-- [et_pb_line_break_holder] --> elems[i].className = elems[i].className.replace(/ ?_has_error ?/g, '');<!-- [et_pb_line_break_holder] --> if (!elems[i].checked) {<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> elems[i].className = elems[i].className + ' _has_error';<!-- [et_pb_line_break_holder] --> err.push("Checking %s is required".replace("%s", elems[i].value));<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (!no_error) {<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, err.join('<br/>'));<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> } else if (elem.tagName == 'SELECT') {<!-- [et_pb_line_break_holder] --> var selected = true;<!-- [et_pb_line_break_holder] --> if (elem.multiple) {<!-- [et_pb_line_break_holder] --> selected = false;<!-- [et_pb_line_break_holder] --> for (var i = 0; i < elem.options.length; i++) {<!-- [et_pb_line_break_holder] --> if (elem.options[i].selected) {<!-- [et_pb_line_break_holder] --> selected = true;<!-- [et_pb_line_break_holder] --> break;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> for (var i = 0; i < elem.options.length; i++) {<!-- [et_pb_line_break_holder] --> if (elem.options[i].selected && !elem.options[i].value) {<!-- [et_pb_line_break_holder] --> selected = false;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (!selected) {<!-- [et_pb_line_break_holder] --> elem.className = elem.className + ' _has_error';<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, "Please select an option.");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> } else if (value === undefined || value === null || value === '') {<!-- [et_pb_line_break_holder] --> elem.className = elem.className + ' _has_error';<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, "This field is required.");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (no_error && elem.name == 'email') {<!-- [et_pb_line_break_holder] --> if (!value.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)) {<!-- [et_pb_line_break_holder] --> elem.className = elem.className + ' _has_error';<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, "Enter a valid email address.");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (no_error && /date_field/.test(elem.className)) {<!-- [et_pb_line_break_holder] --> if (!value.match(/^\d\d\d\d-\d\d-\d\d$/)) {<!-- [et_pb_line_break_holder] --> elem.className = elem.className + ' _has_error';<!-- [et_pb_line_break_holder] --> no_error = false;<!-- [et_pb_line_break_holder] --> tooltip = create_tooltip(elem, "Enter a valid date.");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> tooltip ? resize_tooltip(tooltip) : false;<!-- [et_pb_line_break_holder] --> return no_error;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var needs_validate = function(el) {<!-- [et_pb_line_break_holder] --> return el.name == 'email' || el.getAttribute('required') !== null;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> var validate_form = function(e) {<!-- [et_pb_line_break_holder] --> var err = form_to_submit.querySelector('._form_error'), no_error = true;<!-- [et_pb_line_break_holder] --> if (!submitted) {<!-- [et_pb_line_break_holder] --> submitted = true;<!-- [et_pb_line_break_holder] --> for (var i = 0, len = allInputs.length; i < len; i++) {<!-- [et_pb_line_break_holder] --> var input = allInputs[i];<!-- [et_pb_line_break_holder] --> if (needs_validate(input)) {<!-- [et_pb_line_break_holder] --> if (input.type == 'text') {<!-- [et_pb_line_break_holder] --> addEvent(input, 'blur', function() {<!-- [et_pb_line_break_holder] --> this.value = this.value.trim();<!-- [et_pb_line_break_holder] --> validate_field(this, true);<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> addEvent(input, 'input', function() {<!-- [et_pb_line_break_holder] --> validate_field(this, true);<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> } else if (input.type == 'radio' || input.type == 'checkbox') {<!-- [et_pb_line_break_holder] --> (function(el) {<!-- [et_pb_line_break_holder] --> var radios = form_to_submit.elements[el.name];<!-- [et_pb_line_break_holder] --> for (var i = 0; i < radios.length; i++) {<!-- [et_pb_line_break_holder] --> addEvent(radios[i], 'click', function() {<!-- [et_pb_line_break_holder] --> validate_field(el, true);<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> })(input);<!-- [et_pb_line_break_holder] --> } else if (input.tagName == 'SELECT') {<!-- [et_pb_line_break_holder] --> addEvent(input, 'change', function() {<!-- [et_pb_line_break_holder] --> validate_field(this, true);<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> remove_tooltips();<!-- [et_pb_line_break_holder] --> for (var i = 0, len = allInputs.length; i < len; i++) {<!-- [et_pb_line_break_holder] --> var elem = allInputs[i];<!-- [et_pb_line_break_holder] --> if (needs_validate(elem)) {<!-- [et_pb_line_break_holder] --> if (elem.tagName.toLowerCase() !== "select") {<!-- [et_pb_line_break_holder] --> elem.value = elem.value.trim();<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> validate_field(elem) ? true : no_error = false;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (!no_error && e) {<!-- [et_pb_line_break_holder] --> e.preventDefault();<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> resize_tooltips();<!-- [et_pb_line_break_holder] --> return no_error;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> addEvent(window, 'resize', resize_tooltips);<!-- [et_pb_line_break_holder] --> addEvent(window, 'scroll', resize_tooltips);<!-- [et_pb_line_break_holder] --> window._old_serialize = null;<!-- [et_pb_line_break_holder] --> if (typeof serialize !== 'undefined') window._old_serialize = window.serialize;<!-- [et_pb_line_break_holder] --> _load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js", function() {<!-- [et_pb_line_break_holder] --> window._form_serialize = window.serialize;<!-- [et_pb_line_break_holder] --> if (window._old_serialize) window.serialize = window._old_serialize;<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> var form_submit = function(e) {<!-- [et_pb_line_break_holder] --> e.preventDefault();<!-- [et_pb_line_break_holder] --> if (validate_form()) {<!-- [et_pb_line_break_holder] --> // use this trick to get the submit button & disable it using plain javascript<!-- [et_pb_line_break_holder] --> document.querySelector('[id^="_form"][id$="_submit"]').disabled = true;<!-- [et_pb_line_break_holder] --> var serialized = _form_serialize(document.getElementById('_form_7_'));<!-- [et_pb_line_break_holder] --> var err = form_to_submit.querySelector('._form_error');<!-- [et_pb_line_break_holder] --> err ? err.parentNode.removeChild(err) : false;<!-- [et_pb_line_break_holder] --> _load_script('https://magicjustin.activehosted.com/proc.php?' + serialized + '&jsonp=true');<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --> addEvent(form_to_submit, 'submit', form_submit);<!-- [et_pb_line_break_holder] -->})();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></script>