/* FILE ARCHIVED ON 1:38:59 九月 15, 2011 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 2:50:14 二月 24, 2017. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); } function Left(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0,n); } function Right(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } } // This function creates a new anchor element and uses location // properties (inherent) to get the desired URL data. Some String // operations are used (to normalize results across browsers). function parseURL(p_sUrl) { var a = document.createElement('a'); a.href = p_sUrl; return { source: p_sUrl, protocol: a.protocol.replace(':',''), host: a.hostname, port: a.port, query: a.search, params: (function(){ var ret = {}, seg = a.search.replace(/^\?/,'').split('&'), len = seg.length, i = 0, s; for (;i= saText.length) break; sNextChar = saText[iCount]; nTextWidth = getTextWidth(p_sTextContainerId, sCutText + sNextChar + "." + sTrePuntini); if (nTextWidth > nContainerWidth) break; sCutText = sCutText + sNextChar; } oTextContainer.innerHTML = sCutText + sTrePuntini; }