﻿function PictureC_OutputPic(ctrlName, contentName, picSrc, picLink, toolTip)
{
    var picTd = document.getElementById(ctrlName);
    var docCtnt = document.getElementById(contentName);
    if (docCtnt == null)
    {
        docCtnt = document.getElementById("content0");
    }

    var width = parseInt(docCtnt.style.width);
    var focus_width = width * 0.01 * 750;
    var clickEvent = "";
    if (picLink == "javascript:void(0);")
    {
        clickEvent = "return false;";
    }
    
    picTd.innerHTML = "<a onclick='" + clickEvent + "' href='" + picLink + "' title='点击图片转到 " + toolTip + "'><img border='0' src='" + picSrc + "' width='" + focus_width + "' /></a>";
}
function PictureC_OutputPic2(ctrlName, contentName, picSrc, picLink, toolTip)
{
    var picTd = document.getElementById(ctrlName);
    var docCtnt = document.getElementById(contentName);
    if (docCtnt == null)
    {
        docCtnt = document.getElementById("content0");
    }

    var width = parseInt(docCtnt.style.width);    
    var focus_width = width * 0.01 * 750;
    var clickEvent = "";
    if (picLink == "javascript:void(0);")
    {
        clickEvent = "return false;";
    }
    
    picTd.innerHTML = "<a onclick='" + clickEvent + "' href='" + picLink + "' title='点击图片转到 " + toolTip + "'><img border='0' src='" + picSrc + "' /></a>";
}
