var pathname=window.location.pathname

var CurDbPath = pathname.substring(1,pathname.indexOf(".nsf")+4);

alert(CurDbPath)