// JavaScript Document
<!--
//根据图片大小跳出相应大小的窗口！
//不显示产品简介
var getImg=new Image();
var Timeset=null;
function runCode(picsrc)
{	getImg.src=picsrc;
	OpenWin();
}
function OpenWin()
{
	if(getImg.readyState!="complete"){
		Timeset=setTimeout("OpenWin()",400);
		return false;//确保图片完全加载 
	}
	var Height=getImg.height+20;
	var Width=getImg.width+20;
	var pars='height='+Height+',width='+Width+',top=80,left=200,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'
	runCodeOut(getImg,pars);
	clearTimeout(Timeset);
}

function runCodeOut(img,pars) {
        var winname = window.open('', "_blank", pars);
        winname.document.open('text/html', 'replace');
		winname.opener = null // 防止代码对论谈页面修改
		winname.document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
        winname.document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
        winname.document.writeln("<head>");
        winname.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />");
        winname.document.writeln("<title>图片查看</title>");
        winname.document.writeln("</head>");
        winname.document.writeln("<body>");
        winname.document.writeln("<img src=\""+img.src+"\">");
        winname.document.writeln("</body>");
        winname.document.writeln("</html>");
        winname.document.close();
}
//-->

