﻿

var m_Trime=null;
function appendChild111(objParentName,objChildName)			
{
	
	if (document.all.item(objChildName,0).readyState!="complete")
	{
		if (m_Trime==null)
		{
			m_Trime=window.setInterval("appendChild111('" + objParentName + "','" + objChildName + "')",50); 
		}
	}
	else
	{
		window.clearInterval(m_Trime); 
		
		var objParent = document.getElementById(objParentName);		
		var objChild = document.getElementById(objChildName);							
		try
		{
			objChild.style.position="relative";				
			objParent.appendChild(objChild);				
			
		}
		catch(theException)
		{
			alert(theException);
		}	
	}
}	
//信息部件，显示点击次数
function showClick(nClick)
{
	var s = "";
	s += "[";
	s += "<font color=red>";
	s +=	nClick;
	s += "</font>";
	s += "]";
	document.write(s);
}

//信息部件，显示日期
function showDate(sDate)
{
	var s = "";
	s += "<font color=gray>";
	s +=	"(";
	s +=	sDate;
	s +=	")";
	s += "</font>";
	document.write(s);
}

//显示图片新闻
function viewImg2(s)
{
	window.open(s,"_blank","scrollbars=1,directory=0,status=0,resizable=1","");
}
