// Path of the Master database: var DBNameHTML = "/clients/sensire/sensire-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 aODC( ) { /* Check if the document is loaded in a Passage CMS Frameset; if not, the document will be reloaded using the MAIN frame definition and the URLs specified in the Button with the given UNID (&BUNID=...) */ if ( !( window.name == "rechts" || window.name == "Frame_EditContent" ) ) { // Using button "1000000 Het Bedrijf" to open the document in a frame context modified AKA document.location.href = DBNameHTML + "/aODC?OpenAgent&URL=" + document.location.href + "&BUNID=E2BC454E637E440DC1256FC1004C2E14"; } } aODC( ); function evAClick() { // Handles any clicked A HREF tags that have been assigned by initAEventHandler var oObject = window.event.srcElement; // Find the A element (sometimes the click event happens in an IMG element, inside an A element) while( oObject.tagName != "A" ) { oObject = oObject.parentElement; } var sFeatures = "directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0"; var oWindow = window.open( oObject.href, "_blank", sFeatures ); window.event.returnValue = false; } /************************* * Attach onClick event to all A links that point to $FILE URLs * To attach, call initAEventHandler( ) at the end of a Layout Definition *************************/ function initAEventHandler() { //if ( title != "Je vakantie verdienen bij Sensire! " ) { if ( title != "Je verdient méér in je vakantie!" ) { var aAs = document.body.getElementsByTagName( "A" ); for( var i=0; i < aAs.length; i++ ) { if( aAs[i].href.toUpperCase().indexOf( "$FILE" ) > -1 ) aAs[i].onclick = evAClick; } } }