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.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){if(B==""){return false}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.isTel=function(A){var B=/^[\d|\-|\s|\_]+$/;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}$/;return A.test(B)};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}}}}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 decodeURIComponent(A[1])}}return null};document.setCookie=function(B,D,C){var A=B+"="+encodeURIComponent(D);if(C!=null){A+="; expires="+C}document.cookie=A};document.removeCookie=function(A,B){document.cookie=A+"=; expires=Fri, 31 Dec 1999 23:59:59 GMT;"};function getPosition(C){var B=C.offsetTop;var A=C.offsetLeft;while(C=C.offsetParent){B+=C.offsetTop;A+=C.offsetLeft}var D={top:B,left:A};return D}function cleanWhitespace(B){var B=B;for(var A=0;A<B.childNodes.length;A++){var C=B.childNodes[A];if(C.nodeType==3&&!/\S/.test(C.nodeValue)){B.removeChild(C)}}};
