function nav_back(page) { var num, start, end; // get the number of the page and decrement 1 start = 12; // "/questions/q" end = page.indexOf("."); // stop at the . num = page.substring(start,end); if (num > 0) { num = num - 1; } document.location.href = "/questions/q" + num + ".asp"; //document.location.href = history.back(); } function showPage(which,w,h) { var sParm sParm = 'width=' + w + ',height=' + h + ',resizable=yes,locationbar=no,menubar=no,statusbar=no,scrollbars=no,personalbar=no,toolbar=no'; //alert("Which: " + which); window.open(which,'',sParm); }