// Path of the Master database: var DBNameHTML = "/clients/yunio/yunio-internet.nsf"; // Path of the current database: var DBNameHTML_C = ""; var sPathName = document.location.pathname; var iNSFPos = sPathName.toUpperCase().indexOf( ".NSF" ); if( iNSFPos == -1 ){ var iSlashPos = sPathName.indexOf( "/", 1 ); DBNameHTML_C = sPathName.substring( 0, iSlashPos ); } else { DBNameHTML_C = sPathName.substring( 0, iNSFPos + 4 ); } function openPrintWindow() { // Opens a window that presents the DIV Content to be printed var oFrame = parent.frames["rechts"]; var oDoc = null; if( oFrame ) { oDoc = oFrame.document; } else { oDoc = document; } if( ! oDoc ) { alert( "Het document kon niet worden gevonden;\nprobeert u a.u.b. het document via de standaard\nprint-functionaliteit te printen" ); } else { var oToPrint = oDoc.getElementById( "ToPrint" ); if( oToPrint ) { if( oDoc.styleSheets ) { var oBody = oDoc.body; var popupWidth = oBody.clientWidth; var popupHeight = oBody.clientHeight; // ((Web - Document Print Template - All) | f9917WWA1 var URL = DBNameHTML + "/f9917WWA1?ReadForm"; // Create object that passes the parameters to the dialog box var oDialogArguments = new Object(); oDialogArguments.title = oDoc.title; oDialogArguments.styleSheets = oDoc.styleSheets; oDialogArguments.scripts = oDoc.scripts; oDialogArguments.Content = oDoc.getElementById( "ToPrint" ); oDialogArguments.DBNameHTML = DBNameHTML; oDialogArguments.DBNameHTML_C = DBNameHTML_C; var Features = 'center:yes;edge:raised;help:no;resizable:yes;scroll:yes;status:no;unadorned:yes;dialogWidth:' + popupWidth + ';dialogHeight:' + popupHeight; var returnValue = window.showModalDialog( URL, oDialogArguments, Features ); } // if( oDoc.styleSheets ) } // if( oToPrint ) else { // alert( "No ToPrint" ); } } // if( ! oDoc ) }