function equalcols() {
    // this will make lmenu, content, and rcol all equal heights
    var tallest = 0;
    var d;
    var startheight=1600;
    // if the middle column is shorter than this, then we need to change
    // the heights to the products height?
    var ph = document.getElementById("inner_content").offsetHeight;
    if (ph<400) ph=400;
    if (ph<startheight) {
        document.getElementById("lmenu").style.height=ph+"px";
        document.getElementById("content").style.height=ph+"px";
        document.getElementById("rcol").style.height=ph+"px";
    }
/*
    tallest = getmax(tallest,lmenu.offsetHeight);

    var content = document.getElementById("content");
    // tallest = getmax(tallest,content.offsetHeight);

    var rcol = document.getElementById("rcol");
    tallest = getmax(tallest,rcol.offsetHeight);

    var ph = document.getElementById("products");
    tallest = getmax(tallest,ph.offsetHeight);
    // alert("PH: " + ph.offsetHeight);

    // now go through and set the height for each of these..
    lmenu.style.height = tallest + "px";
    content.style.height = tallest + "px";
    rcol.style.height = tallest + "px";
*/

}

function getmax(a,b) {
    if (a>b) {
        return a;
    } else {
        return b;
    }
}

function bookmark(url, description) {
    netscape="First push OK and then hit CTRL+D to add a bookmark to this site.";
    if (navigator.appName=='Microsoft Internet Explorer')
    {
    window.external.AddFavorite(url, description);
    }
    else if (navigator.appName=='Netscape')
    {
    alert(netscape);
    }
}

function showdate(t) {
    var currentTime = new Date()
    var month = currentTime.getMonth() + 1
    var day = currentTime.getDate()
    var year = currentTime.getFullYear()
    var currentTime = new Date()
    var hours = currentTime.getHours()
    var minutes = currentTime.getMinutes()
    var seconds = currentTime.getSeconds()
    var trueHours =currentTime.getHours()

    zdate = (month + "/" + day + "/" + year + " ")

    if (t>0) {
        if (hours > 12)
            trueHours = hours - 12

        if (minutes < 10)
            minutes = "0" + minutes

        if (seconds < 10)
            seconds = "0" + seconds

        zdate += (trueHours + ":" + minutes + " " + seconds + " ")

        if(hours > 11){
            zdate += "PM";
        } else {
            zdate += "AM";
        }
    }
}

