var remoteWindowName = "CityTV_Remote";

function chout(n) {
        eval("document.channel" + n).src = "http://barry1.cityu.edu.hk/han3/7/6/9/0/0/0/1/www.cityu.edu.hk/CityTV/image/tv_off"+n+".gif";
}

function chon(n) {
        eval("document.channel" + n).src = "http://barry1.cityu.edu.hk/han3/7/6/9/0/0/0/1/www.cityu.edu.hk/CityTV/image/tv_on"+n+".gif";
}

function remoteout() {
        document.remote.src = "http://www.cityu.edu.hk/CityTV/remote.gif";
}

function remoteon() {
        document.remote.src = "http://www.cityu.edu.hk/CityTV/remote_on.gif";
}

function openRemoteWindow(url) {
        url = url || "";
        var childWindow;
        var options = "toolbar=0,status=0,menubar=0,scrollbars=0," +
                      "resizable=0,width=156,height=240,location=0,directories=0" +
//                      "screenX=400, screenY=400" + //this line is for netscape only
                      "";
        childWindow=window.open(url,remoteWindowName, options);
//        childWindow.focus();
        return false;
}

function noch() {
        alert("No current TV program on this channel!");
//        history.go(-1);
}
