// Create By Hishop 丹青 08.04.11
var hishopUpLoadParentHereImgId;
var hishopUpLoadParentHereLinkId;//上次选中要上传此处的 图片和链接的ID 
function hishopUpLoadChange(_url,_textBoxId,_imgId,_upHereImgId,_upHereLinkId,_ext,_upPath,_iframeId,_isAdmin,_isTemp)
{

    //将上次的状态改变为一般状态
    if (hishopUpLoadParentHereImgId!=null)
    {
        var _hImg= document.getElementById(hishopUpLoadParentHereImgId);
        if (_hImg!=null){
        _hImg.style.display="none";
        }
        _hImg=null;
    }
    if (hishopUpLoadParentHereLinkId!=null)
    {
        var _hLink=document.getElementById(hishopUpLoadParentHereLinkId);
        if (_hLink!=null){
        _hLink.style.display="";
        }
        _hLink=null;
    }
    //将此次的记录下来
    hishopUpLoadParentHereImgId=_upHereImgId;
    hishopUpLoadParentHereLinkId=_upHereLinkId;
    document.getElementById(_upHereImgId).style.display="";//图标显示
    document.getElementById(_upHereLinkId).style.display="none";//链接隐藏
    
    //创建URL
    var _hishopUploadurl=_url+"?UpLoadParentControlId="+_textBoxId+"&UpLoadParentImgControlId="+_imgId+"&UpLoadExt="+_ext+"&UpLoadUrl="+_upPath+"&IsAdmin="+_isAdmin+"&UpLoadIsTempStr="+_isTemp;
    //改变Ifrme的链接                       
    var iFrm=document.getElementById(_iframeId)
        iFrm.contentWindow.document.location=_hishopUploadurl;
        //iFrm.height=3000;
        //iFrm.width=500;
     

}