var dbPath="/international/web/lg/it/like35lgit.nsf/"; var repository="/international/web/lg/it/like35lgit.nsf/repositorybyalias/like20std/$file/"; var repository1="/international/web/lg/it/like35lgit.nsf/repositorybyalias/like20std1/$file/"; var repository2="/international/web/lg/it/like35lgit.nsf/repositorybyalias/like30std/$file/"; // Redirects the page to ../docbyalias/xxx if the full path is not included in the url myurl=document.URL.toLowerCase(); validpages = new Array("sitemap",".nsf/docbyalias/",".nsf/docbyalias",".nsf/0/",".nsf/$$search",".nsf/$$viewtemplate",".nsf/(searchview)",".nsf/(newssearch)",".nsf/(imagelibrarydocsbycategory)",".nsf/srchimagelib",".nsf/(agentslocator)","sitemap.html",".nsf/form_","contact","wcc_contact"); doredirect = 1; for (i=0;i= 4) { if (navigator.appName == "Microsoft Internet Explorer") ie = true; if (navigator.appName == "Netscape") ns = true; } //Function for bookmarking page in IE and FF function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } } function getFormatedLink(link) { var LinkTxt = ">> per saperne di pił..." var tmp = ""+LinkTxt+""; return tmp; } function SubTitleHeader(Subtitle) { document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
"+Subtitle+"
"); } function TopNextLinks(Next) { document.writeln("
"); document.writeln(""); document.writeln("") if (Next != "") { document.writeln("") } document.writeln("
SuProssimo/a
") document.writeln("
") document.writeln("
") } // Std function for opening pop-up windows. For example the contact forms popupWins = new Array(); function windowOpener(url, name, args) { if ( typeof( popupWins[name] ) != "object" ) { popupWins[name] = window.open(url,name,args); } else { if (!popupWins[name].closed){ popupWins[name].location.href = url; } else { popupWins[name] = window.open(url, name,args); } } popupWins[name].focus(); } function windowopener(url,name,args) { windowOpener(url,name,args); } // Std function for opening pop-up print windows. function printWindowOpener(url) { if (url.indexOf("?") == -1) { window.open(url + "?OpenDocument&printform=true" , "printform" , 'scrollbars=yes , width=680 , height=700 , screenx=10 , screeny=10 , top=10 , left=10' ) } else { window.open(url + "&printform=true" , "printform" , 'scrollbars=yes , width=680 , height=700 , screenx=10 , screeny=10 , top=10 , left=10' ) } } function doQuickSearch() { str = document.forms['QuickSearch'].elements['QuickSearchStr'].value; //str = location.href //alert(location.href+'SEARCH URL') sortBy="&SearchOrder=1"; start="&Start=1"; count="&Count=10"; wordVariants="&SearchWv=1" if (str != "") { //Code added by gopal sethi to fix the issue with the Special Chars. str=str.toUpperCase(); var arr=new Array(";","$","@","'","<",">","(",")","EMBED","SCRIPT","OBJECT","#","/","//",""," ,","\"","\\","amp"); for(var i=0; i") document.writeln("") document.writeln("") document.writeln("") document.writeln("") document.writeln("") } // Creates code for inserting Windows Media element function ctrlWindowsMedia(alias,action) { if (action == "play") { if (ie) {document.all[alias].play()} } if (action == "pause") { if (ie) {document.all[alias].pause()} } if (action == "stop") { if (ie) {document.all[alias].stop();document.all[alias].CurrentPosition = 0} } if (action == "rewind") { if (ie) {document.all[alias].CurrentPosition = 0} } } function wWindowsMedia(alias,file,w,h) { document.writeln("
") document.writeln("") document.writeln("") document.writeln("") document.writeln("") document.writeln("") document.writeln("
") document.writeln("") document.writeln("") document.writeln("") document.writeln("") document.writeln("
") } var relativeXPos = 0; var relativeYPos = 0; function updatePosition(e) { if (!e) var e = window.event; if (e.pageX || e.pageY) { relativeXPos = e.pageX; relativeYPos = e.pageY; } else if (e.clientX || e.clientY) { relativeXPos = e.clientX + document.body.scrollLeft; relativeYPos = e.clientY + document.body.scrollTop; } } function getRelativeX() { return relativeXPos; } function getRelativeY() { return relativeYPos; } document.onmousemove =updatePosition; // Pop-up and pop-down abstract text when hovering navigation elements. var displayPopup = 0; function navPopUp(text,y) { if ((text != "") && (displayPopup==1)) { myObjWindow = document.getElementById('body-nav-popup-window'); myObjConnector1 = document.getElementById('body-nav-popup-connector1'); myObjConnector2 = document.getElementById('body-nav-popup-connector2'); myObjConnector3 = document.getElementById('body-nav-popup-connector3'); myObjArrow = document.getElementById('body-nav-popup-arrow'); myObjWindow.style.top = y-100; myObjWindow.style.left = parseInt(myObjConnector3.style.left) +parseInt(myObjConnector3.style.width); myObjArrow.style.top = y-6; myObjConnector1.style.top = y-3; myObjConnector3.style.top = y - 80; myObjConnector2.style.top = myObjConnector3.style.top; myObjConnector2.style.height = 77; // write text to popup window myObjWindow.innerHTML = text; // display popup elements myObjWindow.style.visibility = "visible"; myObjConnector1.style.visibility = "visible"; myObjConnector2.style.visibility = "visible"; myObjConnector3.style.visibility = "visible"; myObjArrow.style.visibility = "visible"; } } function navPopDown() { if (displayPopup==1) { // get elements by id myObjWindow = document.getElementById('body-nav-popup-window'); myObjConnector1 = document.getElementById('body-nav-popup-connector1'); myObjConnector2 = document.getElementById('body-nav-popup-connector2'); myObjConnector3 = document.getElementById('body-nav-popup-connector3'); myObjArrow = document.getElementById('body-nav-popup-arrow'); // hide popup elements myObjWindow.style.visibility = "hidden"; myObjConnector1.style.visibility = "hidden"; myObjConnector2.style.visibility = "hidden"; myObjConnector3.style.visibility = "hidden"; myObjArrow.style.visibility = "hidden"; } } /* send document link to colleague function */ /* Dick Larsson 2006-07-05 */ function sendLinkToColleague() { window.open(dbPath+"form_sendlinkto?openForm", 'mailWindow', 'left=20,top=20,width=425,height=550,toolbar=0,resizable=1'); }