// JavaScript Document// Open PDF & Word in New Window var isOpera = false; var agt = navigator.userAgent.toLowerCase(); if(agt.indexOf("opera") != -1) { isOpera = true; } function onloadDocuments(){ if(document.getElementById && isOpera == false) { TJKpopAppPdf(); } } function TJKpopAppPdf(){ //var zA=document.getElementsByTagName("a"); if(document.getElementById("contentOne") || document.getElementById("contentTwo")) { if(document.getElementById("contentOne")){ var zA = document.getElementById("contentOne").getElementsByTagName("a"); } else if(document.getElementById("contentTwo")){ var zA = document.getElementById("contentTwo").getElementsByTagName("a"); } for (var i=0;i= 0 || zA[i].getAttribute("href").toUpperCase().indexOf("PDF/") >= 0)){ zA[i].title+=" This is a link to a PDF document and will open in a new browser window"; if(!zA[i].className) zA[i].className = "pdf"; zA[i].onclick=function() { newWin=window.open(this.href,"TJKWin","scrollbars=yes,menubar=yes,toolbar=yes,address=yes,location=yes,resizable=yes,status=yes"); if( window.focus){ newWin.focus() } return false; } } else if (zA[i].getAttribute("href") != null && (zA[i].getAttribute("href").toUpperCase().indexOf(".DOC") >= 0 || zA[i].getAttribute("href").toUpperCase().indexOf("DOC/") >= 0)){ zA[i].title+=" This is a link to a Microsoft Word document and will open in a new browser window"; if(!zA[i].className) zA[i].className = "doc"; zA[i].onclick=function() { newWin=window.open(this.href,"TJKWin","scrollbars=yes,menubar=yes,toolbar=yes,address=yes,location=yes,resizable=yes,status=yes"); if( window.focus){ newWin.focus() } return false; } } else if (zA[i].getAttribute("href") != null && (zA[i].getAttribute("href").toUpperCase().indexOf(".XLS") >= 0 || zA[i].getAttribute("href").toUpperCase().indexOf("XLS/") >= 0)){ zA[i].title+=" This is a Microsoft Excel document and will open in a new browser window"; if(!zA[i].className) zA[i].className = "xls"; zA[i].onclick=function() { newWin=window.open(this.href,"TJKWin","scrollbars=yes,menubar=yes,toolbar=yes,address=yes,location=yes,resizable=yes,status=yes"); if( window.focus){ newWin.focus() } return false; } } else if (zA[i].getAttribute("href") != null && (zA[i].getAttribute("href").toUpperCase().indexOf(".TR5") >= 0 || zA[i].getAttribute("href").toUpperCase().indexOf("TR5/") >= 0)){ zA[i].title+=" This is a Trim pointer and will open Trim desk drawer"; if(!zA[i].className) zA[i].className = "trim"; zA[i].onclick=function() { newWin=window.open(this.href,"TJKWin","scrollbars=yes,menubar=yes,toolbar=yes,address=yes,location=yes,resizable=yes,status=yes"); if( window.focus){ newWin.focus() } return false; } }