// Path of the Master database: var DBNameHTML = "/yp/cms.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 ); } //SEARCH function entsub( sQuery ) { if (window.event && window.event.keyCode == 13) { if(sQuery != "") { window.location = '/yp/cms.nsf/v01013/Zoekresultaten?OpenDocument&ctxSearchResults1=(start=1~count=10~query=(' + sQuery + '))&q='+sQuery; return false; } else { alert("Vul een trefwoord in!"); } } } function openSearch( sQuery ) { if(sQuery != "") { window.location = '/yp/cms.nsf/v01013/Zoekresultaten?OpenDocument&ctxSearchResults1=(start=1~count=10~query=(' + sQuery + '))&q='+sQuery; return false; } else { alert("Vul een trefwoord in!"); } } function checkEnter() { if( window.event && window.event.keyCode == 13 ) { openSearch( document.forms[0].Search.value ); return false; } } function checkContent( oInput ) { if( oInput.value == "" ) oInput.value = ""; } //END SEARCH