function getSDFProjResultURLChi()
{
    /*
    '/doc/sdf/SDF%20Project%20Results-chi%20(consolidated)(14Dec2006).pdf'
    '/doc/sdf/List%20of%20Project%20Results%20(Chi)_30Nov07.pdf'
    '/doc/sdf/List%20of%20SDF%20Project%20Results%20(Chi)%20(29%20Feb%2008).pdf'
    */
    return '/doc/sdf/List%20of%20SDF%20Project%20Results%20-%20Chi.pdf';
}


function getSDFProjResultURLEng()
{
    /*
    '/doc/sdf/SDF%20Project%20Results-eng%20(consolidated)(14Dec2006).pdf'
    '/doc/sdf/List%20of%20Project%20Results%20(Eng)_30Nov07.pdf'
    '/doc/sdf/List%20of%20SDF%20Project%20Results%20(Eng)%20(29%20Feb%2008).pdf'
    */
    return '/doc/sdf/List%20of%20SDF%20Project%20Results%20-%20Eng.pdf';
}


function showSDFProjResultLink()
{

alert(document.location.href + ' is calling the old showSDFProjResultLink()');

    var oChiTxt, oEngTxt;
    
    oChiTxt = document.getElementById('span_sdf_projresult_chi');
    oEngTxt = document.getElementById('span_sdf_projresult_eng');

    if (oChiTxt != undefined)
    {
        oChiTxt.innerHTML = '<a href="'
            + getSDFProjResultURLChi()
            + '">項目成果一覽</a>'
        ;
    }

    if (oEngTxt != undefined)
    {
        oEngTxt.innerHTML = '<a href="'
            + getSDFProjResultURLEng()
            + '">List of Project Results</a>'
        ;
    }

    return '';
}


function setSDFProjResultLink(sTarget)
{
    var link_text = document.location.href;

    var oChiAnchor, oEngAnchor;
    
    oChiAnchor = document.getElementById('ah_sdfprj_tc');
    oEngAnchor = document.getElementById('ah_sdfprj_en');

    if (undefined != oChiAnchor && null != oChiAnchor)
    {
        oChiAnchor.innerHTML = '項目成果一覽';
        //oChiAnchor.href = (link_text.indexOf('.jsp') >= 0 ? '../../../' : '') + getSDFProjResultURLChi();
        oChiAnchor.href = getSDFProjResultURLChi();
        if (undefined != sTarget && null != sTarget && '' != sTarget) oChiAnchor.target = sTarget;
    }

    if (undefined != oEngAnchor && null != oEngAnchor)
    {
        oEngAnchor.innerHTML = 'List of Project Results';
        //oEngAnchor.href = (link_text.indexOf('.jsp') >= 0 ? '../../../' : '') + getSDFProjResultURLEng();
        oEngAnchor.href = getSDFProjResultURLEng();
        if (undefined != sTarget && null != sTarget && '' != sTarget) oEngAnchor.target = sTarget;
    }

    return '';
}
