<!--
var flag=false;
function DrawImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 1){
if(image.width>180){ 
ImgD.width=180;
ImgD.height=(image.height*180)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>180){ 
ImgD.height=180;
ImgD.width=(image.width*180)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 
//-->
// 图片缩放脚本
var flag=true; 
function DrawnImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=650){ 
            ImgD.width=650; 
            ImgD.height=(image.height*650)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
} 
function cgimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
// 图片脚本--------------------------
function zf11Pic(img,url,alt,blank)
{
	if (blank==null)
		blank=false;
	with(document){
		write("<table class='zf11Pic'>");
		write("<tr><td>");
		write("<a href='");
		write(url);
		if (blank)
			write("' >"); // 添加onClick='return newpage(this.href);'为跳窗脚本
		else
			write("' target='_blank'>");
		write("<img width='120' height='120' src='"); //  在width='150'后面添加height='高度'为图片固定大小
		write(img);
		write("' title='");
		write(alt);
		write("' ");
		write("></a></td></tr></table>");
	}
}
