if (window.name == '') {
path=window.location.pathname;
ipos=path.lastIndexOf('/');
file=path.substring(ipos+1,path.length);
ipos=path.lastIndexOf('.nsf');
db=path.substring(0, ipos+4);
//alert(db + '?opendatabase&file=' + file);
window.location.replace(db + '/fsmain?readform&file=' + file);
}

