function close_waiting() {
        if (waiting_window) {
                waiting_window.close();
        }
}

NS4 = document.layers;
if (NS4) {
   origWidth = innerWidth;
   origHeight = innerHeight;
}
function reDo() {
   if (innerWidth != origWidth || innerHeight != origHeight)
      location.reload();
}
if (NS4) onresize = reDo;
function img_on (this_img) {
        this_img.src=eval("'"+eval(this_img.name+"on").src+"'");
}
function img_off (this_img) {
        this_img.src=eval("'"+eval(this_img.name+"off").src+"'");
}
function tdRO(obj, state) {
    if(document.getElementById) {
        document.getElementById(obj).style.backgroundColor = (state == 'on') ? '#FFFFFF' : '#FFFFFF';
    }
}
function tdFL(href) {
    if(document.getElementById) {
        location.href=href;
    }
}
function getCookie(name) { 
    var index = document.cookie.indexOf(name + "=");
    if (index == -1) return null;
    index = document.cookie.indexOf("=", index) + 1;
    var endstr = document.cookie.indexOf(";", index);
    if (endstr == -1) endstr = document.cookie.length;
    return unescape(document.cookie.substring(index, endstr));
}
function setCookie(name, value, expiry) { 
    document.cookie=name + "=" + escape(value) + "; path=/; domain=.beerintheevening.com; expires=" + expiry.toGMTString();
}

