function doNav(docId, docType){

    var sURL = unescape(window.location.pathname);
    
    var cutPoint = sURL.indexOf(".jsp");
    
    sURL = sURL.substring(0,cutPoint) + ".jsp?docid=" + docId + "&doctype=" + docType;
    
    window.location.replace( sURL );

    

}