function rateThis() {//split current document URL into an array. Since we're only interested in the document stable name, we'll split it at//the database identifier ".nsf" - this will always yield a 2 element array for our Notes URLsvar docTitle;var arrPg = document.URL.split(".nsf");//we're only interested in the 2nd item of the array, that will have the title in itvar titleItem = arrPg[1];var titlePos = titleItem.lastIndexOf('/');//alert('titleItem= ' + titleItem + ' & position of final / = ' + titlePos);//test for a query string in the URL, if there is one, we'll extract the title from between the last / and the ?if (titleItem.indexOf('?') == -1) {docTitle = titleItem.substring(titlePos+1)//alert (docTitle);}else {var qryPos = titleItem.indexOf('?');docTitle = titleItem.substring(titlePos+1, qryPos);//alert(docTitle);}str = '/worldvision/feedback.nsf/rating?OpenForm&articleName=' + docTitle;//alert("article = " + str);window.open(str,'RateThisArticle','menubars=no,toolbars=no,status=no,scrollbars=yes,width=380,height=400,left=115,top=40');}