7; if(maxpage > 1) { document.onkeyup = function(e){ e = e ? e : window.event; var tagname = is_ie ? e.srcElement.tagName : e.target.tagName; if(tagname == 'INPUT' || tagname == 'TEXTAREA') return; actualCode = e.keyCode ? e.keyCode : e.charCode; if(actualCode == 39) { window.location = 'viewthread.php?tid=170253&page=2'; } } }