function mhHover(cls)
{
	event.srcElement.className = cls;
}
function mhClick(tbObj, cls)
{
	event.srcElement.className = cls;
}
function doZoom(size)
{
	document.getElementById('zoom').style.fontSize=size+'px';
	document.getElementById('zoom').style.lineHeight='150%';
}
	
	function doPrint(){
	var str="<html>";
	var article;
	var CurtTitle;
	var author,source,dtpublish,dtlast,showpage;
	var css;
	var strdoPrint="doPrint()";
	var strTmp;
	var openWindow
	
	CurtTitle=document.getElementById('CurtTitle').innerHTML;
	if(CurtTitle!='')
	{
		CurtTitle=CurtTitle+"<br>";
		}
	
	author="作&nbsp;&nbsp;&nbsp;&nbsp;者:"+document.getElementById('author').innerText;
	source="来&nbsp;&nbsp;&nbsp;&nbsp;源:"+document.getElementById('source').innerText;
	dtpublish="刊发日期:"+document.getElementById('dtpublish').innerText;
	dtlast="上传日期:"+document.getElementById('dtlast').innerText;
	showpage=document.getElementById('showpage').innerText;
	
		css="<style>"
		+"body{font-family:宋体;margin:10px;;background:#ffffff}"
		+"td{font-size:14px;line-height:150%;border:1 solid #b8b8b8;padding:10px;}"
		+"</style>";
	
		str +=	css;
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title>';
		str +=	"<body>";
		if (showpage!=''){
			//会议展览页
		str +=	"<table width='100%' align=center cellpadding=5 cellspacing=2><tr><td><div style='float:left'><b>"+document.title+"</b><br>"+ CurtTitle +"原文地址："+window.location.href+"</div></td></tr><tr><td><div style='float:right'><img src=/images/logo.jpg alt=汽车制动网 width=278 height=65 /></div></td></tr><tr><td>";
			}
		else{
			//普通页
		str +=	"<table width='100%' align=center cellpadding=5 cellspacing=2><tr><td><div style='float:left'><b>"+document.title+"</b><br>"+ CurtTitle +"原文地址："+window.location.href+"</div></td></tr><tr><td><div style='float:left'>"+ author +"<br>"+ source +"<br>"+ dtpublish +"<br>"+ dtlast +"</div><div style='float:right'><img src=/images/logo.jpg alt=汽车制动网 width=278 height=65 /></div></td></tr><tr><td>";
			
			}
		
		article=document.getElementById('zoom').innerHTML;
		strTmp=article
		str +=strTmp
		str +=	"</td></tr></table>";
		str +=	"</body></html>";
		openWindow = window.open('')
		openWindow.document.write(str);
		openWindow.document.close();
		openWindow.document.execCommand("Print")

	}


//copy url
function CopyURL(){
	var myHerf=top.location.href;
	var title=document.title;
	if(window.clipboardData){
	var tempCurLink=title + "\n" + myHerf;
	var ok=window.clipboardData.setData("Text",tempCurLink);
	if(ok) alert("已自动复制了标题和链接\n请按Ctrl + V ,粘贴发给你的好友们吧 ！");
	}else
		{
	alert("对不起，目前此功能只支持IE，请直接复制地址栏的地址！");}
}


















