var SPACER_GIF="/res/js/misc/spacer.gif";var BLANK_HTML="/res/common/blank.html";var TITLE_SPACES="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";TITLE_SPACES+=TITLE_SPACES;TITLE_SPACES+=TITLE_SPACES;TITLE_SPACES+=TITLE_SPACES;TITLE_SPACES+=TITLE_SPACES;function formatURL(a){var h=/\$LANGUAGE/g;var g=/\$COUNTRY/g;var f=/\$OEM/g;var e=/\$SCRIPTDIR/g;var d=/\$PRODUCTID/g;var c=/\$PRODUCT/g;var b=/\$WSCOEMPATH/g;var i=getTopWindow();a=a.replace(h,i.theLanguage);a=a.replace(g,i.theCountry);a=a.replace(f,i.theOEM);a=a.replace(e,i.theScriptDir);a=a.replace(d,i.productId||i.theProductId);a=a.replace(c,i.theProduct);a=a.replace(b,"/wsc/res/oem/"+i.wlName);return a}function jshelper_addRevision(b){try{if(getTopWindow().applicationRevision&&typeof(URL)!="undefined"){var c=new URL(b,true,true);var a=new URL("/",true,true);var f=a.protocol+"://"+a.authority;c.setParameter("apprev",getTopWindow().applicationRevision,true);b=c.toExternalForm();if(b.indexOf(f)==0){b=b.substring(f.length)}}}catch(d){}return b}function getHeadElement(d){d=(d||document);var c=d.getElementsByTagName("head");if(c&&c[0]){return c[0]}var b=d.createElement("head");var a=d.getElementsByTagName("html")[0];a.insertBefore(b,a.firstChild);return b}IMPORT_JS=function(a,b){a=jshelper_addRevision(formatURL(a));b=(b||window);if(!isScriptAlreadyPresent(a)){b.document.write("<script id='"+a+"' type='text/javascript' src='"+a+"'><\/script>")}};isScriptAlreadyPresent=function(d){var a=qualifyUrl(d);var c=document.getElementsByTagName("script");for(var b=0;b<c.length;b++){if(a==qualifyUrl(c[b].src)){return true}}return false};qualifyUrl=function(a){var c=(typeof(a)=="object"?a.toString():a);var b=document.createElement("div");b.innerHTML='<a href="'+c.split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")+'">x</a>';return b.firstChild.href};IMPORT_JS_LIB=function(f,g,e){e=(e||window);if(typeof(f)=="string"){f=[f]}var c=formatURL(f[0]);var b=e.document.createElement("script");var a=function(i){if(b.importDone){return}if(i!==true&&b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"){return}b.importDone=true;var h=f.slice(1);if(h.length==0){if(typeof(g)=="function"){g()}return}IMPORT_JS_LIB(h,g,e)};if(!isScriptAlreadyPresent(c)){var d=getHeadElement(e.document);b.setAttribute("language","javascript");b.setAttribute("src",c);b.id=c;b.setAttribute("cm_src",c);b.onload=a;b.onreadystatechange=a;d.appendChild(b)}else{b.importDone=false;a(true)}};IMPORT_CSS=function(f,d){if(typeof(f)=="string"){f=[f]}d=d||window;var e=d.document;var b=getHeadElement(e);for(var a=0;a<f.length;a++){url=formatURL(f[a]);var c=e.createElement("link");c.setAttribute("type","text/css");c.setAttribute("rel","stylesheet");c.setAttribute("href",url);c.setAttribute("cm_src",url);b.appendChild(c)}};REMOVE_CSS=function(g,e){if(typeof(g)=="string"){g=[g]}e=e||window;var a=e.document.getElementsByTagName("link");var f=e.document;for(var c=0;c<g.length;c++){url=formatURL(g[c]);for(var b=0;b<a.length;b++){var d=a[c];if(d.getAttribute("cm_src")==url){d.parentNode.removeChild(d);a=e.document.getElementsByTagName("link");break}}}};IMPORT_I18N=function(a){IMPORT_JS("/res/i18n/$LANGUAGE/$COUNTRY/"+a+".js")};if(typeof(encodeURIComponent)=="undefined"){encodeURIComponent=function(a){return escape(a)}}if(typeof(decodeURIComponent)=="undefined"){decodeURIComponent=function(a){return unescape(a)}}function jdecode(b){var a=/\+/g;b=b.replace(a,"%20");return decodeURIComponent(b)}function jencode(c){var b=/\+/g;var a=/%20/g;c=encodeURIComponent(c);return c.replace(b,"%2B").replace(a,"+")}function getTopWindow(c,b){if(!c){c=this}try{var f=c.document.location.href}catch(d){return(b||null)}if(typeof(c.__theOneAndOnlyTopWindow__)!="undefined"&&c.__theOneAndOnlyTopWindow__!=null){return c.__theOneAndOnlyTopWindow__}if(!c||c.parent==c){try{if(c&&!c.opener&&c.dialogArguments&&c.dialogArguments.opener){c.opener=c.dialogArguments.opener}}catch(d){}if(c&&c.opener&&!c.opener.closed&&c.opener!=c){var a=getTopWindow(c.opener,c);if(a){c.__theOneAndOnlyTopWindow__=a;return a}}return c}else{var a=getTopWindow(c.parent,c);if(a){c.__theOneAndOnlyTopWindow__=a;return a}return c}}function ensureWindowSize(c,p,a,i){var d=window.top.document.documentElement;var n=window.screen.availWidth;var o=window.screen.availHeight;var l=(typeof(window.screenLeft)!="undefined")?window.screenLeft:window.screenX;var k=(typeof(window.screenTop)!="undefined")?window.screenTop:window.screenY;var g=0;var f=0;if(l+c>n){g=Math.max(0,(c-(n-l)+20))}if(k+p>o){f=Math.max(0,(p-(o-k)+40))}if(i){try{window.top.moveBy(-g,-f)}catch(j){}if(c!=d.clientWidth||p!=d.clientHeight){try{window.top.resizeTo(c,p)}catch(m){}if(c!=d.clientWidth||p!=d.clientHeight){c=c+(c-d.clientWidth);p=p+(p-d.clientHeight);try{window.top.resizeTo(c,p)}catch(m){}}}}else{if(d.clientWidth<c||d.clientHeight<p){try{window.top.moveBy(-g,-f)}catch(j){}g=0;f=0;if(d.clientWidth<c){g=c-d.clientWidth}if(d.clientHeight<p){f=p-d.clientHeight}try{window.top.resizeBy(g,f)}catch(m){}g=0;f=0;if(d.clientWidth<c){g=c-d.clientWidth}if(d.clientHeight<p){f=p-d.clientHeight}try{window.top.resizeBy(g,f)}catch(m){}}}if(a){var n=window.screen.availWidth;var o=window.screen.availHeight;var b=Math.round((n-c)/2);var h=Math.round((o-p)/2);try{window.top.moveTo(b,h)}catch(m){}}}function copyBase(b,a){for(pt in b.prototype){a.prototype[pt]=b.prototype[pt]}a.prototype.toString=b.prototype.toString;a.prototype.valueOf=b.prototype.valueOf;a.prototype.base=b}function copyObject(b,a){for(pt in b){a[pt]=b[pt]}}function safeEscape(a){if(!a){return""}return a.replace(/([&<'])/g,function(b){switch(b){case"&":return"&amp;";case"<":return"&lt;";case"'":return"\\'";case'"':return'\\"'}})}String.prototype.startsWith=function(a){if(!a){return true}if(a.length>this.length){return false}return this.indexOf(String(a))==0};String.prototype.endsWith=function(a){if(!a){return true}if(a.length>this.length){return false}return this.lastIndexOf(String(a))==this.length-String(a).length};function getGUID(){var d="0000000000000000";var a=new Date().valueOf().toString(16);a=d.substr(0,10-a.length)+a;var c=Math.random().toString(16).substr(2);c=d.substr(0,16-c.length)+c;var e="32668";var b=e+"0"+a.substring(0,2)+"-"+a.substring(2,6)+"-"+a.substring(6,10)+"-"+c.substring(0,4)+"-"+c.substring(4,16);b=b.toUpperCase();return b}function convertToText(e){e=(e||"");var d=/<script/ig;var c=/<\/script/ig;var b=/(\r\n)|(\n\r)/g;var a=/\n/g;e=e.replace(d,"&lt;script");e=e.replace(c,"&lt;/script");e=e.replace(b,"\n");e=e.replace(a,"<BR/>");return e}function revertToText(d){d=(d||"");var c=/&lt;script/ig;var b=/&lt;\/script/ig;var a=/<br\/>/ig;d=d.replace(c,"<script");d=d.replace(b,"<\/script");d=d.replace(a,"\n");return d};
