// code to disable the return key for the submit buttons function keyPress () { var keycode; // ie if (window.event) { keycode = window.event.keyCode; } // netscape /* else if { (e) keycode = e.which; } */ else { return true; } // keycode for the enter key is 13 if (keycode == 13) { return true; } return true ; } document.onkeypress = keyPress; /** * Open a new window with the given url, target, and properties. Below is a list * of properties a window may have. Width and height are ints, and the rest are * either 'yes' or 'no'. * * width ------- window width * height window height * toolbar ----- show toolbar * location show location bar (address bar) * directories - show directors (bookmarks / links) * status show status bar * menubar ----- show menu bar * scrollbars show scroll bars * resizable --- allow resizing * copyhistory copy history (back & forward - previsouly visited pages * * Properties must be in the format = with a comma in * between each property. (e.g. "width=300,height=300,toolbar=yes,scrollbars=no") * * @param sUrl location of the new window * @param sTarget name of the new window the url should load in * @param sProperties properties of the new window (see other * openWindow method for different properties) */ function openWindow(sUrl, sTarget, sProperties) { newWin = window.open(sUrl, sTarget, sProperties); newWin.focus(); return false; } function doTablePaging (tableProperty, page) { document.forms[0].elements[tableProperty + ".displayPage"].value = page; document.forms[0].submit(); } function doTableSort (tableProperty, column, direction) { document.forms[0].elements[tableProperty + ".sortingString"].value = column + '¤' + direction; document.forms[0].submit(); }