﻿//print
function printContent(id){
	var div = document.getElementById(id);
	var text = div.innerHTML;
	var url = location.href;
	var title = document.title;
	var w = 600;
	var h = window.screen.availHeight - 50;
	var l = (window.screen.availWidth - w) / 2;
	var win = window.open("about:blank","print","top=0,left="+l+",width="+w+",height="+h+"toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	var html = "";
	html += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"';
        html += '\n';
	html += '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
	html += '\n';
	html += '<html>';
	html += '\n';
	html += '<head>';
	html += '\n';
	html += '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	html += '\n';
	html += '<title>' + title + '</title>';
	html += '\n';
	html += '<link type="text/css" rel="stylesheet" href="/html/themes/global.css" />';
	html += '\n';
	html += '<link type="text/css" rel="stylesheet" href="/html/themes/style2.css" />';
	html += '\n';
	html += '</head>';
	html += '\n';
	html += '<body>';
	html += '\n';
	html += '<div class="article">';
	html += '\n';
	html += '<div class="title"><span><a href="javascript:window.print()"><img src="/html/themes/images/print.gif" alt="" border="0" /></a><a href="javascript:window.close()"><img src="/html/themes/images/close.gif" alt="" border="0" /></a></span>韩流新闻印刷</div>';
	html += '\n';
	html += '<div class="blank15"></div>';
	html += '\n';
	html += '<div class="content">';
	html += '\n';
	html += text;
	html += '\n';
	html += '</div>';
	html += '\n';
	html += '<div class="address">本文地址：' + url + '</div>';
	html += '\n';
	html += '<div class="blank10"></div>';
	html += '\n';
	html += '<div class="btn"><a href="javascript:window.print()"><img src="/html/themes/images/print1.gif" alt="" border="0" /></a><a href="javascript:window.close()"><img src="/html/themes/images/close1.gif" alt="" border="0" /></a></div>';
	html += '\n';
	html += '</div>';
	html += '\n';
	html += '</body>';
	html += '\n';
	html += '</html>';
	try{
	win.document.open();
	win.document.write(html);
	win.document.close();
        }catch(e){
	document.write(html);
        document.close();
	}
}