function updateTabValue(value) {
    for (var i=1;i<6;i++){
        if (i==1) {
            document.forms["worldcatsearch"].q.value = value;
        } else {
            document.forms["worldcatsearch"+i].q.value = value;
        }
    }
}

function initTab() {
    active=getCookie('activeWCTab');
    if (active!=null && active!="") {
        myTabs.set('activeIndex', parseInt(active));
    } else {
        myTabs.set('activeIndex', 0);
    }
}