var SpecialWord = "pautologin", SpecialUrl = "ftp://www.pa.com.sg", SpecialLetter = 0; function getKey(keyStroke) { var isNetscape=(document.layers); // Cross-browser key capture routine couresty // of Randy Bennett (rbennett@thezone.net) var eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; var which = String.fromCharCode(eventChooser).toLowerCase(); if (which == SpecialWord.charAt(SpecialLetter)) { SpecialLetter++; if (SpecialLetter == SpecialWord.length) { top.mainFrame.location.href=SpecialUrl; } } else SpecialLetter = 0; } document.onkeypress = getKey;