functionDrawImage(ImgD)
{varimgWidth=ImgD.width;varimgHeight=ImgD.height;if(ImgD.width>830)
{//ImgD.onclick = viewBigImg(ImgD);ImgD.width=830;
ImgD.height=(ImgD.height*830)/ImgD.width;
ImgD.title="点击查看大图";
ImgD.style.cursor="pointer";
ImgD.setAttribute('onclick', document.all?eval(function() { viewBigImg(this, imgWidth, imgHeight) }) :'javascript:viewBigImg(this,'+imgWidth+','+imgHeight+')');
}
}functionviewBigImg(obj, imgWidth, imgHeight) {variframe=document.getElementById("transbox");
iframe.style.display="";
iframe.style.height=document.body.scrollHeight+"px";
iframe.style.width=document.body.clientWidth+"px";varshowImg=document.getElementById("showImgImg");
showImg.src=obj.src;
showImg.style.display="";
showImg.style.left=(document.body.clientWidth/2-imgWidth/2)+"px";
showImg.style.top=document.documentElement.scrollTop+document.documentElement.clientHeight/2-imgHeight/2+"px";returnfalse;
}functionhideImgImg() {variframe=document.getElementById("transbox");
iframe.style.display="none";varshowImg=document.getElementById("showImgImg");
showImg.style.display="none";
}