	function Print()
{
        var Position = document.all.Position.innerHTML;
		var Title_e=document.all.Title_e.innerHTML;
	var Content = document.all.Content.innerHTML;


var PartI='<div align="left" style="width:600px; background-color:#ffffff;padding-left:10px; padding-bottom:10px;"><img src="http://www.chinadaily.com.cn/image_e/logo_cdcomcn_1.gif" width="410" height="55"></div>';
var PartII= '<div align="left" style="width:600px; background-color:#ffffff;padding-left:10px;" ><p class="a-black-1">           '+Position+'</p></div>';
var PartIII= '<div style="width:600px;background-color:#ffffff;padding-left:10px; padding-bottom:10px; font-family:Verdana, Arial, Helvetica, sans-serif;font-size:1.5em">'+Title_e+'</div>';
var PartIV= '<div align="left" style="width:600px; background-color:#ffffff; padding-bottom:10px; padding-left:10px;">'+Content+'<div align="center" style="margin-top:20px;">Copyright By chinadaily.com.cn. All rights reserved</div></div>';

document.body.innerHTML =PartI+PartII+PartIII+PartIV;
window.print();

}
			  function docmtend() {
document.articleformend.url.value = document.location;
document.articleformend.title.value = document.title;
document.articleformend.submit();
}

function Content(size){
document.getElementById('Content').style.fontSize=size+"pt";
}
function InitAjax()
{
 var ajax=false; 
 try { 
  ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
 } catch (e) { 
  try { 
   ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
  } catch (E) { 
   ajax = false; 
  } 
 }
 if (!ajax && typeof XMLHttpRequest!='undefined') { 
  ajax = new XMLHttpRequest(); 
 } 
 return ajax;
}

function getNum(newsID)
{
	if (typeof(newsID) == 'undefined')
	{
	return false;
	}
	var subfolder = Math.floor(newsID/100000);
	var url = "http://www.chinadaily.com.cn/html/cmtcount/" + subfolder+ "/" + newsID + ".txt";
	var show1 = document.getElementById("show_count1"); 
	var show2 = document.getElementById("show_count2"); 
	var ajax = InitAjax();
	ajax.open("GET", url, true); 
	ajax.onreadystatechange = function() { 
	//alert(ajax.status);
	if (ajax.readyState == 4 && ajax.status == 200) { 
		show1.innerHTML = ajax.responseText;
		show2.innerHTML = ajax.responseText;
	}else{
		show1.innerHTML = 0;
		show2.innerHTML = 0;
	}
}
ajax.send(null); 
}
function getArticleID(urlstr)
{

	var star = urlstr.lastIndexOf("content_")+8;
	var end = urlstr.lastIndexOf(".htm");
	var TmpArticleId = urlstr.substring(star,end);

	if (TmpArticleId.indexOf("_") == -1) { 
		articleId = TmpArticleId; 
	} else { 
		var TmpEnd = TmpArticleId.lastIndexOf("_");
		 
		articleId = TmpArticleId.substr(0,TmpEnd);
	} 
	return articleId;
}
var ArticleUrl = document.location.href;
var articleId = getArticleID(ArticleUrl);

getNum(articleId);

document.write("<link href=\"http://www.chinadaily.com.cn/css/60th2009.css\" rel=\"stylesheet\" type=\"text/css\">");
document.write("<form name=\"articleformend\" action=\"http://comment.chinadaily.com.cn/articlecmt.shtml\" target=\"_top\">");
document.write("<input type=\"hidden\" name=\"url\">");
document.write("<input type=\"hidden\" name=\"title\">");
document.write("</form>");

