var Browser=new Object();Browser.isMozilla=(typeof document.implementation!="undefined")&&(typeof document.implementation.createDocument!="undefined")&&(typeof HTMLDocument!="undefined");Browser.isIE=window.ActiveXObject?true:false;Browser.isFirefox=(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1);Browser.isSafari=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1);Browser.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);var Utils=new Object();Utils.htmlEncode=function(a){return a.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};Utils.stripHTMLTag=function(b){var a=/<\/?[^>]*>/g;return b.replace(a,"")};Utils.trim=function(a){if(typeof(a)=="string"){return a.replace(/^\s*|\s*$/g,"")}else{return a}};Utils.isEmpty=function(a){switch(typeof(a)){case"string":return Utils.trim(a).length==0?true:false;break;case"number":return a==0;break;case"object":return a==null;break;case"array":return a.length==0;break;default:return true}};Utils.isNumber=function(b){var a=/[\d|\.|,]+/;return a.test(b)};Utils.isInt=function(b){var a=/\d+/;return a.test(b)};Utils.isEmail=function(a){var b=/([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)/;return b.test(a)};Utils.fixEvent=function(b){var a=(typeof b=="undefined")?window.event:b;return a};Utils.srcElement=function(a){if(typeof a=="undefined"){a=window.event}var b=document.all?a.srcElement:a.target;return b};Utils.isTime=function(b){var a=/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/;return a.test(b)};Utils.getCenterX=function(a){var b;if(Browser.isIE){b=(document.documentElement.clientWidth-a)/2}else{b=(document.body.clientWidth-a)/2}return b};Utils.getCenterY=function(b){var a;a=document.documentElement.scrollTop+b;return a};Utils.observe=function(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{b.attachEvent("on"+a,c)}};function rowindex(a){if(Browser.isIE){return a.rowIndex}else{table=a.parentNode.parentNode;for(i=0;i<table.rows.length;i++){if(table.rows[i]==a){return i}}}}Function.prototype.bind=function(a){var b=this;return function(){b.apply(a,arguments)}};document.getCookie=function(d){var b=document.cookie.split("; ");for(var c=0;c<b.length;c++){var a=b[c].split("=");if(d==a[0]){return unescape(a[1])}}return null};document.setCookie=function(b,e,d){var a=b+"="+encodeURIComponent(e);if(d!=null){var c=new Date();c.setTime(c.getTime()+d);a+=";path=/; expires="+c.toGMTString()}document.cookie=a};document.removeCookie=function(a,b){};Array.prototype.del=function(a){return this.slice(0,a).concat(this.slice(a+1,this.length))};function findPosX(a){var b=0;if(a.offsetParent){while(a){b+=a.offsetLeft;a=a.offsetParent}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(b){a+=b.offsetTop;b=b.offsetParent}}return a}function eval_script(html){var re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;var match=re.exec(html);if(match){if(window.execScript){window.execScript(match[2])}else{window.eval(match[2])}}};