rem: w = window.frames[0]; 
add: w = client.currentFrame; 
context: function onWindowKeyPress (e){    var code = Number (e.keyCode);    var w;    var newOfs;        switch (code)    {        case 112: /* F1 */        case 113: /* ... */        case 114:        case 115:        case 116:        case 117:        case 118:        case 119:        case 120:        case 121: /* F10 */            var idx = code - 112;            if ((idx in client.viewsArray) && (client.viewsArray[idx].source))                setCurrentObject(client.viewsArray[idx].source);            break;        case 33: /* pgup */            w = window.frames[0];            newOfs = w.pageYOffset - (w.innerHeight / 2);            if (newOfs > 0)                w.scrollTo (w.pageXOffset, newOfs);            else                w.scrollTo (w.pageXOffset, 0);            e.preventDefault();            break;                    case 34: /* pgdn */            w = window.frames[0];            newOfs = w.pageYOffset + (w.innerHeight / 2);            if (newOfs < (w.innerHeight + w.pageYOffset))                w.scrollTo (w.pageXOffset, newOfs);            else                w.scrollTo (w.pageXOffset, (w.innerHeight + w.pageYOffset));            e.preventDefault();            break;        case 9: /* tab */            e.preventDefault();            break;                    default:                }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b78133bb8ec2475acd4aba9a7c677591dd0262fe/handlers.js/buggy/extensions/irc/xul/content/handlers.js