function isValidTime(a){var b=/^(\d?\d):?(\d\d)$/.exec(a);return b&&b[1]<24&&b[2]<60}function isValidDate(b){var a,f,d,e,c;if(e=/^(\d\d)(\d\d)(\d\d)$/.exec(b)){a=e[1];f=e[2];d=e[3]+2000}else{if(e=/^(\d\d)(\d\d)(\d\d\d\d)$/.exec(b)){a=e[1];f=e[2];d=e[3]}else{if(e=/^(\d{1,2})\.(\d{1,2})\.(\d\d)$/.exec(b)){a=e[1];f=e[2];d=e[3]+2000}else{if(e=/^(\d{1,2})\.(\d{1,2})\.(\d\d\d\d)$/.exec(b)){a=e[1];f=e[2];d=e[3]}else{if(e=/^(\d{1,2})\/(\d{1,2})\/(\d\d)$/.exec(b)){a=e[2];f=e[1];d=e[3]+2000}else{if(e=/^(\d{1,2})\/(\d{1,2})\/(\d\d\d\d)$/.exec(b)){a=e[2];f=e[1];d=e[3]}else{if(/^(\d\d\d\d)-(\d\d)-(\d\d)$/.exec(b)){a=e[3];f=e[2];d=e[1]}else{return false}}}}}}}c=new Date(d,(f-1),a);return(c.getFullYear()==d&&c.getMonth()==(f-1)&&c.getDate()==a)}function isValidEmail(a){return a.match(/^[A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~][A-Z0-9\.!#\$%&'\*\+\-\/=\?\^_`\{\|\}~]+@[A-Z0-9\-]+(?:\.[A-Z0-9\-]+)+$/i)}function isValidUrl(a){return a.match(/^https?:\/\/(\w+:\w+@)?[\-\w]+(\.[\-\w]+)*(:\d+)?(\/[^ #\?]*)?(\?[^ #]*)?(#[^ ]*)?$/)}function isValidNumber(a){return a.match(/^(0|[1-9][0-9]*)$/)}function isValidCode(a){return a.match(/^[a-z][a-z0-9\-]*$/)}function isEmpty(a){return $.trim(a).length==0};