// Prevent error dialog box to show (=> errors will no more be visible !!) self.onerror = function doNothing() { return true; } //global declarations path=window.location.pathname.toLowerCase(); nsfPos=path.indexOf("home.nsf"); path=path.substring(0, nsfPos)+"documents.nsf/"; var strNumberFieldName = ""; var strDateFieldName = ""; var strTimeFieldName = ""; var onFocus = 0; function knItemDisplay(docID){ if ( screen.width > 800 ) var windowPar = "left=400,top=100,width=530,height=600,scrollbars=yes,resizable=yes"; else var windowPar = "left=312,top=78,width=414,height=450,scrollbars=yes,resizable=yes"; var tmpURL = path + "WebDocsView/"+docID+"?OpenDocument"; var window_KnItem = open( tmpURL, 'window_KnItem', windowPar); window_KnItem.focus(); } function locationsMapDisplay(path,pageName){ if ( screen.width > 800 ) var windowPar = "left=420,top=100,width=500,height=370,scrollbars=no,resizable=no"; else var windowPar = "left=200,top=100,width=500,height=370,scrollbars=no,resizable=no"; var tmpURL = path+"/"+pageName+"?OpenPage"; var window_LocationsMap = open( tmpURL, 'window_LocationsMap',windowPar); window_LocationsMap.focus(); } function viewDisplay(viewName){ if ( screen.width > 800 ) // var windowPar = "left=0,top=100,width=530,height=600,scrollbars=no,resizable=no"; //19/03/2009 WR var windowPar = "left=0,top=100,width=630,height=680,scrollbars=no,resizable=no"; var windowPar = "left=0,top=100,width=630,height=680,scrollbars=yes,resizable=no"; else //19/03/2009 WR var windowPar = "left=0,top=78,width=414,height=450,scrollbars=no,resizable=no"; var windowPar = "left=0,top=78,width=414,height=450,scrollbars=yes,resizable=no"; var tmpURL = path+"/pages/"+viewName+"?OpenView"; var window_View = open( tmpURL, 'window_View',windowPar); window_View.focus(); } function tntDisplay(){ path=window.location.pathname.toLowerCase(); if ( screen.width > 800 ) var windowPar = "left=0,top=100,width=530,height=600,scrollbars=no,resizable=no"; else var windowPar = "left=0,top=78,width=414,height=450,scrollbars=no,resizable=no"; var tmpURL = path+"/TracknTraceQueryFrm?OpenForm"; var window_Tnt = open( tmpURL, 'window_Tnt',windowPar); window_Tnt.focus(); } function locationDisplay(docName){ if ( screen.width > 800 ) var windowPar = "left=0,top=100,width=400,height=500,scrollbars=yes,resizable=yes"; else var windowPar = "left=0,top=100,width=400,height=400,scrollbars=yes,resizable=yes"; var tmpURL = path + "ViewPages/"+docName+"?OpenDocument"; var window_Location = open( tmpURL, 'window_Location', windowPar); window_Location.focus(); } function formDisplay(emailName){ if ( screen.width > 800 ) var windowPar = "left=400,top=100,width=530,height=600,scrollbars=yes,resizable=yes"; else var windowPar = "left=312,top=78,width=414,height=450,scrollbars=yes,resizable=yes"; var tmpURL = path + "Email?OpenForm&" + emailName; var window_Form = open( tmpURL, 'window_Form', windowPar); window_Form.focus(); }