//Begin
var  secureURL     = "http://dev.psacommunities.org";

var  SpecialWord  = "login"
    ,SpecialUrl   = secureURL + "/cs/login.aspx"
    ,SpecialKey   = ""
    ,SpecialLetter = 0;

    //    ,SpecialWord2 = "dev"
    //    ,SpecialUrl2  = cscdaURL + "/apps/manager/"
    //    ,SpecialWord3 = "bondinfo"
    //    ,SpecialUrl3  = cscdaURL + "/apps/bondinfo/"

function getKey(keyStroke) {
    var isNetscape=(document.layers);
    var eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
    var which = String.fromCharCode(eventChooser).toLowerCase();

    SpecialKey = SpecialKey + which;

    //if ( (which == SpecialWord.charAt(SpecialLetter)) || (which == SpecialWord2.charAt(SpecialLetter)) || (which == SpecialWord3.charAt(SpecialLetter)) ) {
    if ( which == SpecialWord.charAt(SpecialLetter) ) {
       SpecialLetter++;
       if ( (SpecialLetter == SpecialWord.length) && (SpecialKey == SpecialWord) ) {
          window.location = SpecialUrl;
            //   } else {
            //     if ( (SpecialLetter == SpecialWord2.length) && (SpecialKey == SpecialWord2) ) {
            //        window.location = SpecialUrl2;
            //     } else {
            //       if ( (SpecialLetter == SpecialWord3.length) && (SpecialKey == SpecialWord3) ) {
            //          window.location = SpecialUrl3;
            //       };
            //         };
       };
    } else {
      SpecialLetter = 0;
      SpecialKey = ""
    };

};  //function

document.onkeypress = getKey;
//End

