function openDBRelativeURL( url, target ){ target = (target == null ) ? window : target; var p = location.pathname; path = '/' + p.slice( 1, p.toLowerCase().lastIndexOf('.nsf')+4) + '/'; target.location.href = path + url; } function getPathName(){ var p = location.pathname; var pth = p.slice( 1, p.toLowerCase().lastIndexOf('.nsf')+4) + '/'; return pth[0]; } function navView( start, count ){ var strt = getPathName(); document.location = strt + '?openview&start=' + start + '&count=' + count; } /* NavigateView cycles through a view using the start and count paramaters of the ?OpenView method. Required as @Commands do not work with single category views on the web !! Taken from www.codestore.net Arguments: d = direction, either "prev" or "next" n = incremental count number */ function cs3() { alert('coming soon') } function navigateView (d, n) { var c = 0; var args = location.search.split('&'); var news = new Array(); var ii = 0; for (var i = 0; i < args.length; i ++) { if ( args[i].toLowerCase().indexOf('start=') != -1){ c = parseInt(args[i].split('=')[1]); } else { news[ii] = args[i]; ii ++; } } //var strt = getPathName(); var strt = location.pathname; if (args[0] == ''){ location.href = strt + '?OpenView&start=' + n; } else if (c == 0 && d == 'next'){ location.href += '&start=' + n; } else if (c == 0 && d == 'prev'){ return alert('There are no more documents in that direction.'); } else if (c <= n && d == 'prev'){ location.href = strt + news.join('&'); } else if (d == 'next'){ location.href = strt + news.join('&') + '&start=' + ( c + n ); } else if (d == 'prev'){ location.href = strt + news.join('&') + '&start=' + ( c - n); } } function getHelp(strKey) { var strURL = "LookupHelp/" + strKey + "?OpenDocument" var winLeft = screen.width - 850; var winTop = screen.Height - 500; var winAttr = "left=" + winLeft + ", top=" + winTop + ", Height=350, Width=600, resizable, scrollbars"; var win2 = window.open(strURL,"GlobalShare_Help",winAttr) } function replacetwisties(){ for(i=0;i 0 ? openDBRelativeURL( strValue ) : "" } function readCookie() { if (document.cookie == "") { writeCookie(); return ""; } else { var the_cookie = document.cookie; the_cookie = unescape(the_cookie); the_cookie_split = the_cookie.split(";"); for (loop=0;loop=12) { var ampm="PM" } else { var ampm="AM" } if (hours > 12) { hours = hours-12 } switch( split[1]) { case "Jan": month="01"; break; case "Feb": month="02"; break; case "Mar": month="03"; break; case "Apr": month="04"; break; case "May": month="05"; break; case "Jun": month="06"; break; case "Jul": month="07"; break; case "Aug": month="08"; break; case "Sep": month = "09"; break; case "Oct": month = "10"; break; case "Nov": month="11"; break; case "Dec": month="12"; } var new_time = hours+":"+fix_the_time[1]+" "+ampm var new_date = month+"/"+split[2]+"/" + split[5] +" " + new_time return new_date; } function sendFocus(fld){ var index; var element = null; var anchor = null; var f; f = document.forms[0]; for (index = 0; index < f.elements.length; index++) { if (f.elements[index].name == fld) { element = f.elements[index]; break; } } for (index = 0; index < document.anchors.length; index++) { if (document.anchors[index].name == fld) { anchor = document.anchors[index]; break; } } // Send focus to the input element if (element) { element.focus(); } // If we have an anchor tag by the same name, scroll there; otherwise scroll to the input element if (anchor) { if (anchor.scrollIntoView != null) anchor.scrollIntoView(); } else if (element) { if (element.scrollIntoView != null) element.scrollIntoView(); } }