/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * 根据日期是不是过去的三天，返回相应的图片代码。
 */
function imgCode(date) {
    var img = new Array("images00/new.gif","images/bullet1.gif");
    var arr = date.split("-");
    var b = new Date(arr[0],arr[1]-1,arr[2]).getTime();
    var a = new Date().getTime();
    if(a-b<=3*1000*3600*24){
        return "<img src='"+img[0]+"'/>";
    }else{
        return "<img src='"+img[1]+"'/>";
    }
}
