﻿// JavaScript Document
function ShowPubDate(year,month,day)
{
    var D_Today = new Date();
    if(D_Today==null)
    {
        D_Today = new Date();
    }
    var subDate = new Date(year,month-1,day,D_Today.getHours(),D_Today.getMinutes(),D_Today.getSeconds());
    if(D_Today.getTime()-3*24*60*60*1000<subDate.getTime())
    {
        document.write("<img src='/images/eContentWare/news.gif' border='0'>");
    }
    else
    {
        var t = "";
        if(day<10)
        {
            t = "0";
        }
    	document.write("<font color='#606060'>["+month.toString()+"/"+t+day.toString()+"]</font>");
    }
}

function ShowDiv(d)
{
    for(var i=1;i<5;i++)
    {
        if(i == d)
        {
           document.getElementById("cssdiv_"+i).className = "case_button";
           document.getElementById("div_"+i).style.display = "block";
        }
        else
        {
           document.getElementById("cssdiv_"+i).className = "case_button2";
            document.getElementById("div_"+i).style.display = "none";
        }
    }
    return false;
}

