function showHello() {
	var welcomestring;
	var dates = new Date();	
	hours1 = dates.getHours();
	if (hours1<6)
		welcomestring="凌晨好";
	else if (hours1<9)
		welcomestring="早上好";
	else if (hours1<12)
		welcomestring="上午好";
	else if (hours1<14)
		welcomestring="中午好";
	else if (hours1<17)
		welcomestring="下午好";
	else if (hours1<19)
		welcomestring="傍晚好";
	else if (hours1<22)
		welcomestring="晚上好";
	else
		welcomestring="夜里好";
	document.write(welcomestring);
}
function popwin(url,winname,width,height)                    
     {                    
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))
	{
	xposition = (screen.width - width) / 2;
	yposition = (screen.height - height) / 2;
	}
        window.open(url,winname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,resizable=no,copyhistory=yes,width=" + width + ",height=" + height + ",left=" + xposition + ",top=" + yposition);
     }

function popwin1(url,winname,width,height)                    
     {                    
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))
	{
	xposition = 110;
	yposition = 200;
	}
        window.open(url,winname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,resizable=no,copyhistory=yes,width=" + width + ",height=" + height + ",left=" + xposition + ",top=" + yposition);
     }     
function popwin2(url,winname,width,height)                    
     {                    
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))
	{
	xposition = 500;
	yposition = 200;
	}
        window.open(url,winname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,resizable=no,copyhistory=yes,width=" + width + ",height=" + height + ",left=" + xposition + ",top=" + yposition);
     }
          
function doZoom(size){
	document.getElementById('zoom').style.fontSize=size+'px'
setTailPosition()
}

function doPrint(){
var str="<html>";
var article;
var css;
var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
var strAdEnd="<!--NEWSZW_HZH_END-->";
var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
var strdoPrint="doPrint()";
var strTmp;

	css="<style>"
	+"body{font-family:宋体}"
	+"td,.f12{font-size:12px}"
	+".f24 {font-size:24px;}"
	+".f14 {font-size:14px;}"
	+".title14 {font-size:14px;line-height:130%}"
	+".l17 {line-height:170%;}"
	+"</style>";

	str +=	css;
	str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
	str +=	'<title>'+document.title+'</title>';
	str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>";
	str +=	"<center><table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 width=150><a href=http://news.sina.com.cn><img src=http://image2.sina.com.cn/ent/images/sina_xwzx.gif  width=144 height=34 border=0></a></td><td valign=bottom><font color=#0000ff><a href=http://home.sina.com.cn/ class=a02>新浪首页</a> &gt; <a href=http://news.sina.com.cn/ class=a02>新闻中心</a> &gt; &nbsp;正文</font></td><td align=right valign=bottom><a href='javascript:history.back()'>返回</a>　<a href='javascript:window.print()'>打印</a></td></tr></table>";
	str +=	"<table width=600 border=0 cellpadding=0 cellspacing=20 bgcolor=#EDF0F5><tr><td>";
	
	article=document.getElementById('article').innerHTML;
	if(article.indexOf(strAdBegin)!=-1){
		str +=article.substr(0,article.indexOf(strAdBegin));
		strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
	}else{
		strTmp=article
	}
	str +=strTmp
	str += window.location.href
	str +=	"</td></tr></table></center>";
	str +=	"</body></html>";
	document.write(str);
	document.close();

}     