function pickDate(n){var t=$("#date"),i=$("#time"),r=$("#step");t.val()!=n&&i.val("");t.val(n);r.val("2");$("#Button1").click()}function pickSeat(n){var t=$("#seats"),r=$("#time"),i=$("#step");t.val()!=n&&r.val("");t.val(n);i.val(3);n=="+"&&i.val(5);$("#Button1").click()}function HideTooltip(){}function clearDate(n){document.forms[0].dd.value=n;document.forms[0].date.value="";document.forms[0].seats.value="";document.forms[0].time.value="";document.forms[0].step.value=1;document.forms[0].Button1.click()}function clearSeat(n){document.forms[0].dsc.value=n;document.forms[0].seats.value="";document.forms[0].time.value="";document.forms[0].step.value=2;document.forms[0].Button1.click()}function clearTime(n){document.forms[0].dt.value=n;document.forms[0].time.value="";document.forms[0].step.value=3;document.forms[0].Button1.click()}function clearInfo(){document.forms[0].step.value=4;document.forms[0].Button1.click()}function next(){var u=document.getElementById("uname"),i=document.getElementById("uphone"),o=document.getElementById("uemail"),s=document.getElementById("unote"),r=document.getElementById("name"),n=document.getElementById("phone"),f=document.getElementById("note"),e=document.getElementById("email"),t;r.value=u.value;n.value=i.value;f.value=s.value;e.value=o.value;try{if(r.value.length<2){u.focus();u.select();alert("Please enter your full name");return}if(n.value.length>0)if(t=stripAlphaChars(n.value),t.length==11&&t[0]=="1")n.value=t.substr(1,10);else{if(t.length<7){i.focus();i.select();alert("Phone numbers must be at least 7 digits.");return}if(t.length>11){i.focus();i.select();alert("Phone numbers cannot exceed 11 digits.\n For international numbers change the country code/flag.");return}n.value=t}else{alert("Please enter your phone number.");return}if(!checkEmail())return;r.value=encodeURIComponent(r.value);e.value=encodeURIComponent(e.value);n.value=stripAlphaChars(n.value);f.value=encodeURIComponent(f.value);document.forms[0].FinalButton.click();document.forms[0].FinalButton.enabled=!1}catch(h){document.forms[0].FinalButton.enabled=!0;alert("There was an error making this reservation.")}}function stripAlphaChars(n){var t=new String(n);return t.replace(/[^0-9]/g,"")}function checkEmail(){var n=document.getElementById("uemail");return/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(n.value)?!0:(alert("Please provide a valid email address"),n.focus(),n.select(),!1)}function checkTerms(){var n=document.getElementById("AcceptTerms");return n.checked}function checkTextAreaMaxLength(n,t,i){var r=n.maxlength,u;if(null==r&&(r=i),u=parseInt(r),!checkSpecialKeys(t)&&n.value.length>u-1){if(window.event)return t.returnValue=!1,!1;t.preventDefault()}}function checkSpecialKeys(n){return n.keyCode!=8&&n.keyCode!=46&&n.keyCode!=35&&n.keyCode!=36&&n.keyCode!=37&&n.keyCode!=38&&n.keyCode!=39&&n.keyCode!=40?!1:!0}function scrollItLeft(){var n,t;if(clearInterval(timerId),scrollAmount=0,n=document.getElementsByClassName("scroll-buttons-container"),t=document.getElementsByClassName("scroll-buttons"),n.length==1&&t.length==1){var f=n[0].scrollWidth,i=n[0].scrollLeft,r=n[0].clientWidth+2,u=i-r;scrollAmount=u>0?-r:-i;timerId=setInterval("scrollIt()",timeout)}}function scrollItRight(){var n,t;if(clearInterval(timerId),scrollAmount=0,n=document.getElementsByClassName("scroll-buttons-container"),t=document.getElementsByClassName("scroll-buttons"),n.length==1&&t.length==1){var i=n[0].scrollWidth,r=n[0].scrollLeft,u=n[0].clientWidth+2,f=r+u;scrollAmount=f>i?i-r:u;timerId=setInterval("scrollIt()",timeout)}}function scrollIt(){scrollAmount==0&&clearInterval(timerId);var t=document.getElementsByClassName("scroll-buttons-container"),n=0;t.length==1&&(scrollAmount>0?scrollAmount>=shift?(n=shift,scrollAmount-=shift):(n=scrollAmount,scrollAmount=0):Math.abs(scrollAmount)>=shift?(n=-shift,scrollAmount+=shift):(n=scrollAmount,scrollAmount=0),t[0].scrollLeft+=n)}var prevTime,scrollAmount=0,timerId=null,shift=30,timeout=10;