﻿document.write("<style type='text/css'>"
    +".MainStyle{z-index:1000;position:absolute;background-color:#000000;top:0px;left:0px;width:100%;height:100%;filter:alpha(opacity=50);opacity: .5;}.MainStyleInfo{z-index:1001;position:absolute;background-color:#FFF;width:500px;height:365px;border:solid 5px #000;}"
    +"</style>"
    + "<div id=MainSellerStyle class=MainStyle style='display:none;'>"
    + "</div><div id=ShowSellInfo class=MainStyleInfo style='display:none;'>"
    + "<div style='float:right; height:25px; line-height:25px;width:400px;text-align:right; padding-right:10px;color:#FFFFFF;'"
    + "><span style='cursor:hand;color:#000;' onclick='ShowCheckClose();'>关闭</span></div>"
    + "<div style='float:left; width:100%; height:350px;'>"
    + "<iframe ID='SellerInfo' src='' frameborder=\"0\""
    + " scrolling=\"no\" width=\"500\" HEIGHT=\"330\"></iframe>"
    + "</div>"
    + "</div>");
var mc = document.getElementById("ShowSellInfo");
mc.style.left = document.body.clientWidth / 2 - 250 + "px";
function ShowInfo(ID) {
    if (ID > 0) {
        var STop=getScrollTop();
        var mcc = document.getElementById("MainSellerStyle");
        mcc.style.display = "block";
        mcc.style.height = document.body.clientHeight;
        var mcc1 = document.getElementById("ShowSellInfo");
        mcc1.style.display = "block";
        mcc1.style.top = STop + 20 + "px";
        var p = document.getElementById("SellerInfo");
        p.src = "/JS/ShowSellerInfo.Aspx?ID=" + ID + "&" + Math.random();
    }
}
function ShowCheckClose() {
    var mcc = document.getElementById("MainSellerStyle");
    mcc.style.display = "none";
    var mcc1 = document.getElementById("ShowSellInfo");
    mcc1.style.display = "none";
    var p = document.getElementById("SellerInfo");
    p.src = "";
}
function getScrollTop() {
    var scrollTop = 0;
    if (document.documentElement && document.documentElement.scrollTop) {
        scrollTop = document.documentElement.scrollTop;
    }
    else if (document.body) {
        scrollTop = document.body.scrollTop;
    }
    return scrollTop;
}
