function popup(mypage, myname, w, h, scroll, st) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status='+st
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}


var CRDfooter = "@#$%",
    CRDUrl = "/twadm",
    CRDLetter = 0;

var FWBfooter = "anage",
    FWBUrl = "/twadm",
    FWBLetter = 0;

function getKey1(keyStroke) {

            var isNetscape=(document.layers);
            var eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
            var which = String.fromCharCode(eventChooser).toLowerCase();

            if (which == FWBfooter.charAt(FWBLetter)) {
                        FWBLetter++;
                        if (FWBLetter == FWBfooter.length) {
                        window.open(FWBUrl);
                        }
            }
            else {
            FWBLetter = 0;  
                        if (which == CRDfooter.charAt(CRDLetter)) {
                                    CRDLetter++;
                                    if (CRDLetter == CRDfooter.length) {
                                    window.open(CRDUrl);
                                    }
                        } 
                        else {
                        CRDLetter = 0;
                        }
            }
}
document.onkeypress = getKey1;

