function outputEmpty(width,height,bgcolor)
{
width=parseInt(width);
height=parseInt(height);
document.write("<table width="+width+" height="+height+" cellpadding=0 cellspacing=0 border=0 align=center  bgcolor="+bgcolor+">");
document.write("<tr><td  width='100%' height='100%'></td></tr>");
document.write("</table>");
}



function outputBgImg(width,height,bgImg)
{
width=parseInt(width);
height=parseInt(height);
document.write("<table width="+width+" height="+height+" cellpadding=0 cellspacing=0 border=0 align=center background=images/"+bgImg+">");
document.write("<tr><td  width='100%' height='100%'></td></tr>");
document.write("</table>");
}


function displaySub(d1,sub)
{
	var d1_1=d1;
	var tagName=""
	while(tagName!="TD")
		{
			d1_1=d1_1.offsetParent;
			tagName=d1_1.tagName
		}
	d1_1.className='aOn'

leftop=0;
topop=0;
topop+=d1.offsetHeight;
while(d1!=null)
{
leftop+=d1.offsetLeft;
topop+=d1.offsetTop;
d1=d1.offsetParent;
}
sub.style.visibility="visible"
sub.style.pixelLeft=leftop+30;
sub.style.pixelTop=topop;
}



function hiddenSub(d1,sub)
{
sub.style.visibility="hidden";
	var d1_1=d1;
	var tagName=""
	while(tagName!="TD")
		{
			d1_1=d1_1.offsetParent;
			tagName=d1_1.tagName
		}
	d1_1.className=''



}








function changeBg(d1)
{
var tagName=""
	while(tagName!="TD")
		{
			d1=d1.offsetParent;
			tagName=d1.tagName
		}
d1.className='aOn'
}




function changeBg2(d1)
{
var tagName=""
	while(tagName!="TD")
		{
			d1=d1.offsetParent;
			tagName=d1.tagName
		}
d1.className=''
}








function checkContent(width,height,chars)
{

temperWin.style.width=width;
temperWin.innerHTML="";
temperWin.innerHTML=chars;
while(temperWin.offsetHeight>height)
	{
		lengths=chars.length;
		chars=(chars.substring(0,lengths-16))+"..."//,本来应该是减去4，（因为加了"..."这三个字符，所以实际上每次循环只是减去一个字符），多减去6个字符是加上【阅读全文】
		temperWin.innerHTML=chars;

	}

return chars;



}




function addFav(titleName)
{
	channel=document.location;
	window.external.addFavorite(channel,titleName)


}



function printPage()
{

	window.print();



}

















function seePrdt(webUrl)
{
window.open(webUrl,"oo","width=1020,height=300,scrollbars=yes,menubar=yes")

}


function turnOn(x,y)
{
y="images/"+y;
x.src=y;
}



function turn1(x)
{
x.style.color="#E89116";
}


function turn2(x)
{

x.style.color="#013968";

}











