// function qui recharge la page avec une nouvelle query passe dans l'URL function switchView(viewName, n, cat) { var loc = path + "/libHome?ReadForm&Query=" + viewName + "_" + n; //append cat value if(cat != "" ) { loc = loc + "&cat=" + cat; } if(n=="0") { loc = loc + "&Count=25"; } document.location = loc; } /* Open the popup and ensure that it is reused in any following calls to the same function */ function windowOpener(url, name, args) { if (typeof(popupWin) != "object"){ popupWin = window.open(url,name,args); } else { if (!popupWin.closed){ popupWin.location.href = url; } else { popupWin = window.open(url, name,args); } } popupWin.focus(); } // Preview button function PreviewDocument(unid) { str = path + "/WebPubDocs/" + unid + "?OpenDocument"; location.href = str; } function ViewFullDoc( urltype, link, key) { if(urltype=="1") { //external URL var loc=link; windowOpener( loc, 'FullDocument', 'width=700,height=500,toolbar,menubar,location,status,resizable,scrollbars'); } else if(urltype=="2") { var loc = path + "/LibDocsByKey/" + key + "/$FILE/" + link + "?OpenElement"; windowOpener( loc, 'FullDocument', 'width=700,height=500,toolbar,menubar,status,resizable,scrollbars'); } else { var loc = path + "/LibDocsByKey/" + key + "?OpenDocument"; windowOpener( loc, 'FullDocument', 'width=700,height=500,status,resizable,scrollbars'); } } // Lance une nouvelle fenetre avec le masque de forwarding; function webMail(docId) { var str = new String(document.location); var idx = str.indexOf(".nsf"); str = str.substring(0, idx+4) + "/libForward?OpenForm&ParentUNID="+ docId; window.open(str,"Forward","scrollbars=yes,width=700,height=500"); } function doQuickSearch() { var q = document.forms[1].SearchString.value; if(q=='') { alert("Please enter a text string to search for."); return false; } document.forms[1].submit(); }