//小类标题头
//如果修改界面或者图片、风格等，
//修改此函数
function WriteSmallClassTitle(sName)
{
	var s = "";
	s +=	"<tr>";
	s +=		"<td width='5'>&nbsp;</td>";
	s +=		"<TD width='20'><img src='../Images/Doc/Point.gif'></TD>";
	s +=		"<TD background='../Images/Doc/SubjectPoint.gif' width='8'></TD>";
	s +=		"<TD width='100%' background='../Images/Doc/SubjectPoint.gif'>";
	s +=			"<FONT class='SmallClassTitle'>";
	s +=				"&nbsp;" + sName
	s +=			"</FONT>";
	s +=		"</TD>";
	s +=		"<td align='right' width='67'><img border='0' src='../Images/Doc/SubjectLine.gif'></td>";
	s +=	"</tr>";
	document.write(s);
}
//如果大类是链接模式的话，显示Iframe
function WriteBigClassLink(sUrl)
{
	var s = "";
	s += "<iframe width=100% height=450 frameborder=0 src='" + sUrl + "'></iframe>";
	document.write(s);
}

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 readDoc(nID)
{/*
	try
	{
		var vTop = 0;
		var vLeft = (screen.width - 800 ) / 2;
		if (vLeft < 0)
		{
			vLeft = 0;
			window.open(
				"DocRead.aspx?DocID=" + nID,
				"_blank",
				"status=0,directory=0,width=" + screen.width + ",resizable=1,left=" + vLeft + ",top=0,",
				"");	
		}
		else
		{
			window.open(
				"DocRead.aspx?DocID=" + nID,
				"_blank",
				"status=0,directory=0,width=800,resizable=1,left=" + vLeft + ",top=0,",
				"");	
		}
	
	}
	catch (e)
	{
		window.open(
		"DocRead.aspx?DocID=" + nID,
		"_blank",
		"status=0,directory=0,width=800,resizable=1,left=0,top=0,",
		"");	
	}*/
	window.open(
		"DocRead.aspx?DocID=" + nID,
		"_blank",
		"",
		"");
}

function readNews(nID)
{
	var vTop = 0;
	var vLeft = (screen.width - 400 ) / 2;

	window.open(
		"NewsRead.aspx?ID=" + nID,
		"_blank",
		"status=0,directory=0,width=400,height=300,resizable=1,left=" + vLeft + ",top=0,",
		"");	
}

function askQuestion(nID)
{
	window.open(
		"QuestionAsk.aspx?SmallClassID=" + nID,
		"_blank",
		"status=0,directory=0,width=471,height=360,resizable=1,left=10,top=10,",
		"");	
}

function searchDoc(sKey)
{
	var vS = window.open(
		"DocSearch.aspx?Key=" + sKey,
		"_VS",
		"status=0,directory=0,width=471,height=360,resizable=1,left=10,top=10,",
		"");
	vS.focus();	
}

function searchPress()
{
	if (event.keyCode == 13)
	{
		document.all.imgDocSearch.click();
		event.returnValue = false;
	}
	
}



