function GetGotoPageUrlString (nPageNumber,sUrlText) { return "" + sUrlText + ""; } function WritePagination(mypage,maxpages) { if (maxpages > 1 && mypage <= maxpages) { document.write(""); document.write("
"); var counterstart = mypage - 9; if (mypage%10) counterstart = mypage - (mypage%10) + 1; var counterend = counterstart + 9; if (counterend > maxpages) counterend = maxpages; if (counterstart != 1) document.write(GetGotoPageUrlString(1,"First")+" : "+GetGotoPageUrlString(counterstart - 1,"Previous")+" "); document.write("["); var pad=""; var counter = counterstart; for(;counter<=counterend;counter++) { if (counter != mypage) document.write(" " + GetGotoPageUrlString(counter,pad + counter)); else document.write(" " + pad + counter + ""); } document.write(" ]"); if (counterend != maxpages) document.write(" " + GetGotoPageUrlString (counterend + 1,"Next") + " : " + GetGotoPageUrlString(maxpages,"Last")) document.write("
"); } } function WritePaginationHeader(mypage,maxpages,recordCount) { document.write("
"); document.write("Add new"); document.write(""); document.write("Details found: " + recordCount + "
Page " + mypage + " of " + maxpages); document.write("
"); } var rowWithMouse = null; function gGetElementById(s) { var o = (document.getElementById ? document.getElementById(s) : document.all[s]); return o == null ? false : o; } function rowUpdateBg(row, myId) { row.className = (row == rowWithMouse) ? 'rowselected' : ( (myId&1) ? '' : 'shade' ); } function rowRollover(myId, isInRow) { // myId is our own integer id, not the DOM id // isInRow is 1 for onmouseover, 0 for onmouseout var row = document.getElementById('tr_' + myId); rowWithMouse = (isInRow) ? row : null; rowUpdateBg(row, myId); } function DisplayHeader() { document.write(""); }