var __siteUrl = "/Qooway"; document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/jquery.metadata.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/jquery.cookie.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/jquery.json-2.4.min.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/form/jquery.form.min.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/form/jquery.validate.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jq/form/jquery.alphanumeric.js\"%3E%20%3C/script%3E")); document.write(unescape("%3Cscript type=\"text/javascript\" src=\"" + __siteUrl + "/js/jquery.QWframework.js\"%3E%20%3C/script%3E")); var COOKIE_TOKEN = "OloUserCookie_Token"; var COOKIE_CUSTOMER = "Qooway_OloUserCookie_Customer"; var COOKIE_MERCHANT = "Qooway_OloUserCookie_Merchant"; var COOKIE_ADMIN = "Qooway_OloUserCookie_Admin"; var SITE_URL = "/Qooway"; var MONEY_CHAR = "$"; var MONEY_DIGITS = 2; var USE_MIXPANEL = "0"; function pageAjaxInit(){ $.ajaxSetup({cache:false,timeout:10000}); $.metadata.setType("attr","validate"); $.validator.addMethod("RegExp", function(value, element, param) { return this.optional(element) || param.test(value); }, "Input RegExp Error"); $.validator.addMethod("decimal", function(value, element) { return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)\.\d{1,2}$/.test(value); }, "Please input decimal"); $.validator.addMethod("postcode", function(value, element) { return this.optional(element) || /^[0-9]{6}$/.test(value) || /^[A-Z][0-9][A-Z] [0-9][A-Z][0-9]$/.test(value); }, "Valid Postal/Zip Code is required"); }