function Hashtable(){this.clear=hashtable_clear;this.containsKey=hashtable_containsKey;this.containsValue=hashtable_containsValue;this.get=hashtable_get;this.isEmpty=hashtable_isEmpty;this.keys=hashtable_keys;this.put=hashtable_put;this.remove=hashtable_remove;this.size=hashtable_size;this.toString=hashtable_toString;this.values=hashtable_values;this.hashtable=[]}function hashtable_clear(){this.hashtable=[]}
function hashtable_containsKey(a){var b=!1,c;for(c in this.hashtable)if(c==a&&this.hashtable[c]!=null){b=!0;break}return b}function hashtable_containsValue(a){var b=!1;if(a!=null)for(var c in this.hashtable)if(this.hashtable[c]==a){b=!0;break}return b}function hashtable_get(a){return this.hashtable[a]}function hashtable_isEmpty(){return parseInt(this.size())==0?!0:!1}function hashtable_keys(){var a=[],b;for(b in this.hashtable)this.hashtable[b]!=null&&a.push(b);return a}
function hashtable_put(a,b){if(a==null||b==null)throw"NullPointerException {"+a+"},{"+b+"}";else this.hashtable[a]=b}function hashtable_remove(a){var b=this.hashtable[a];this.hashtable[a]=null;return b}function hashtable_size(){var a=0,b;for(b in this.hashtable)this.hashtable[b]!=null&&a++;return a}function hashtable_toString(){var a="",b;for(b in this.hashtable)this.hashtable[b]!=null&&(a+="{"+b+"},{"+this.hashtable[b]+"}\n");return a}
function hashtable_values(){var a=[],b;for(b in this.hashtable)this.hashtable[b]!=null&&a.push(this.hashtable[b]);return a}function jsCorrect(a){return a==null&&a==void 0?"":a.replace(/'/g,"\\'")}function addLoadEvent(a){var b=window.onload;window.onload=typeof window.onload!="function"?a:function(){b&&b();a()}}function isChrome(){return/chrome/.test(navigator.userAgent.toLowerCase())}function isIE7(){return navigator.appVersion.indexOf("MSIE 7.")!=-1}
function getTS(){return"ts="+(new Date).getTime()}function isValidEmail(a){return/^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/.test(a)?!0:!1}
function setDisplayChange(a){a=document.getElementById(a);a.style.display=a.style.display!="block"?"block":"none";a.style.display=="block"&&a.focus();return!1}function IsNotNullOrEmpty(a){return a!=null&&a.toString().trim()!=""}function IsNullOrEmpty(a){return a==null||a.toString().trim()==""}function strToInt(a,b){b===void 0&&(b=0);if(IsNullOrEmpty(a))return b;var c=parseInt(a);return isNaN(c)?b:c}
function strToBool(a,b){b===void 0&&(b=!1);if(IsNullOrEmpty(a))return b;var c=parseInt(a)==1||a.toLowerCase()=="true";return isNaN(c)?b:c}function strToDouble(a,b){b===void 0&&(b=0);if(IsNullOrEmpty(a))return b;typeof a=="string"&&(a=a.replace(",","."));var c=parseFloat(a);return isNaN(c)?b:c}function strDefaultForNULL(a,b){return a==null?b==null?"":b:a}
function concateString(a,b,c){a=$.trim(a);b=$.trim(b);if(a=="")return b==""?"":b;if(b=="")return a;if(c==null||$.trim(c)=="")c=",";return a.substring(a.length-1)==c?a+b:a+c+b}function setCookie(a,b,c,d,f,g,h){var e=new Date;e.setDate(e.getDate()+c);h&&(e.setHours(0),e.setMinutes(0),e.setSeconds(0));a=a+"="+escape(b)+(c?"; expires="+e.toGMTString():"")+(d?"; path="+d:"")+(f?"; domain="+f:"")+(g?"; secure":"");document.cookie=a}
function deleteCookie(a,b,c){if(getCookie(a))document.cookie=a+"="+(b?"; path="+b:"")+(c?"; domain="+c:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}function getCookie(a){var b=document.cookie;a+="=";var c=b.indexOf("; "+a);if(c==-1){if(c=b.indexOf(a),c!=0)return null}else c+=2;var d=document.cookie.indexOf(";",c);if(d==-1)d=b.length;return unescape(b.substring(c+a.length,d))}String.prototype.replaceAt=function(a,b){return this.substr(0,a)+b+this.substr(a+b.length)};
function are_cookies_enabled(){var a=navigator.cookieEnabled?!0:!1;if(typeof navigator.cookieEnabled=="undefined"&&!a)document.cookie="testcookie",a=document.cookie.indexOf("testcookie")!=-1?!0:!1;return a}function reloadPage(){window.location.href=window.location.href};

