﻿// JScript 文件

//alert(document.all.rightdiv);
//document.all.rightdiv.innerHTML="<font color=red>ffff</font>";
LastMiddlePhotoOne="";
LastMiddlePhotoTwo="";
LastRightPhoto="";
function MiddleDivWrite(PhotoSrcOne,PhotoSrcTwo,HeightValue)
{
    if(PhotoSrcOne==LastMiddlePhotoOne && PhotoSrcTwo==LastMiddlePhotoTwo)
    {}
    else
    {
        DivContent = ""
        DivContent = "<table border=0 width=619 cellpadding=0 cellspacing=0>";
        DivContent = DivContent + "<tr><td height="+HeightValue+" ><img src=images/"+PhotoSrcOne+"></td>";
        DivContent = DivContent + "<td><img src=images/"+PhotoSrcTwo+"></td></tr>";
        DivContent = DivContent + "</table>";
        document.all.MiddleDiv.innerHTML = DivContent;
        
        LastMiddlePhotoOne=PhotoSrcOne;
        LastMiddlePhotoTwo=PhotoSrcTwo;
    }

}
function RightDivWrite(PhotoSrc,HeightValue)
{
    if(PhotoSrc==LastRightPhoto)
    {}
    else
    {
        DivContent = ""
        DivContent = DivContent + "<table border=0 width=130 cellpadding=0 cellspacing=0>";
        DivContent = DivContent + "<tr><td height="+HeightValue+" background=images/"+PhotoSrc+"><br></td></tr>";
        DivContent = DivContent + "</table>";
        document.all.RightDiv.innerHTML = DivContent;
        
        LastRightPhoto=PhotoSrc;
    }
}
function ProductClassDivSet(SetValue)
{
    DivFrameSet("ProductClassDiv","ProductClassframe","ProductClassframe.aspx","178",SetValue);
}
function ProductSearchDivSet(SetValue)
{
    DivFrameSet("ProductSearchDiv","ProductSearchFrame","ProductSearchFrame.aspx","178",SetValue);
}
function NewsSearchDivSet(SetValue)
{
    DivFrameSet("NewsSearchDiv","NewsSearchframe","NewsSearchframe.aspx","178",SetValue);
}
function AdcolumnDivSet(SetValue)
{
    DivFrameSet("AdcolumnDiv","AdcolumnFrame","AdcolumnFrame.aspx","178",SetValue);
}
function FriendLinkDivSet(SetValue)
{
    DivFrameSet("FriendLinkDiv","FriendLinkFrame","FriendLinkFrame.aspx","178",SetValue);
}



//MiddleDivWrite("show01_01.gif","show01_02.gif");
//RightDivWrite("index01_04.gif","182");