function getPaper(id, width, height) {
    var Ndate = new Date();
    var year, month, day;

    //http://58.48.109.106:9000/rp/fs/cp/17/34/20080403/1/image/1.jpg 		
    rootUrl = "http://58.48.109.106:9000/rp/fs/cp/17/34"; //¸ùÄ¿Â¼

    do {
        newUrl = rootUrl + "/" + Ndate.getFullYear(); // #../2007#


        month = 1 + Ndate.getMonth();
        if (month < 10)
            newUrl += "0"; 							// #../2007/0#
        newUrl += month; 							// #../2007/08#


        day = Ndate.getDate();
        if (day < 10)
            newUrl += "0"; 							// #../2007/09/0#
        newUrl += day; 								// #../2007/09/09#


        ban = newUrl;
        newUrl += "/" + id + "/image/" + id + ".jpg";

        ban += "/" + id + "/index.html";

        Ndate = new Date(Date.parse(Ndate) - 1000 * 60 * 60 * 24);

    }
    while (!verifyHttpHref(newUrl));
    //newUrlÎªÀàËÆ http://58.48.109.106:9000/rp/fs/cp/17/34/20080403/1/image/1.jpg"

    img = "<a href='" + ban + "' target='_blank' ><img src='" + newUrl + "' width='" + width + "' height = '" + height + "' border='0'></a>";
    return img;
}

function verifyHttpHref(shref) {
    try {
        var xhr = new ActiveXObject("MSXML2.XMLHTTP");
        xhr.open("HEAD", shref, false);
        xhr.send();

        var doc = xhr.status;
        if (doc == 404)
            return false;
        else
            return true;
    } 	//try
    catch (e) {
        return true;
    }
}
