$.theknot=function(){};$.extend($.theknot,{formatStr:function(a,c,d){if(typeof(a)==typeof(void (0))||typeof(c)==typeof(void (0))||a.indexOf("{0}")==-1){return}var e=a;for(var b=1;b<arguments.length;++b){var f="{"+(b-1)+"}";while(e.indexOf(f)!=-1){e=e.replace(f,arguments[b])}}return e},isValidEmailAddress:function(a){return/^\w+([-+.'']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(a)},isInteger:function(a){return(typeof(a)!==typeof(void (0))&&(parseFloat(a)==parseInt(a))&&!isNaN(a))},isValidZipCode:function(a){return/^\d\d\d\d\d(-\d\d\d\d)?$/.test(a)},navigateUrlViaFakeFormSubmit:function(h){var f=this;var e='<form id="fakeForm" method="get" action="{0}">';var b="</form>";var c='<input type="hidden" name="{0}" value="{1}"></input>';var d="";var g=h.split("?");var a=[];if(g.length>1){a=g[1].split("&");if(a.length>0){d=f.formatStr(e,g[0]);$(a).each(function(){var j=this.split("=");var k=(typeof(decodeURIComponent)!==typeof(void (0)))?decodeURIComponent(j[0]):unescape(j[0]);var l=(typeof(decodeURIComponent)!==typeof(void (0)))?decodeURIComponent(j[1]):unescape(j[1]);var i=f.formatStr(c,k,l);d=d+i});d=d+b}}else{d=f.formatStr(e+"{1}",h,b)}$(d).insertAfter("form:first");window.setTimeout(function(){$("form#fakeForm").submit()},0)}});
