function HeadList(strT){

var strTop = "" ;
var rndPicIndex=3;//Math.round(Math.random()*3)+1;
var UserID=GetCookie("CookieUserID");

if (UserID==null || GetCookie("CookieUserID")<10000) {
	strTop+="<span style='color:black;font-size:12px'>你没有登陆！请先</span> <a href=\"javascript:Funny_WindowOpen(\'/Common/Skin/Common/System/Login/Login.P6.html\',xCenter(550),yCenter(400),550,400)\" style='color:red;font-size=14px'>登陆</a> ";
}else{
	strTop+="<span style='color:black;font-size:12px'>你的ID:" 
		+UserID+"</a>&nbsp;<a href=\"/Common/HTML/FunnyWeber6/Pim/Index.html\" target=\"_blank\" \
	 style='color:black;font-size:12px'>[个人后台]</a>\
	&nbsp;<a href=javascript:Logout(''); style='color:black;font-size:12px'>[退出]</font>";

}
strTop+='&nbsp;<a style=\'color:black;font-size:12px\' href="#" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.mathfan.com/H6.aspx?F=/CMS/Search/Index.P6\');return false;">[设为首页]</a>';
strTop+="&nbsp;<a style='color:black;font-size:12px' href=\"javascript:Funny_WindowOpen(\'/H6.aspx?F=/Common/System/Reg/Reg.P6\',xCenter(800),yCenter(400),800,400,'')\" title=如果你没有注册成为会员,请点击这里注册!>[注册]</a>";

	document.write(
		'<table width=100%><tr><td width="200"><a href="/">'+
		'<img src="/Common/Skin/User/MathFan/Search/images/mathfanbbslogo'+rndPicIndex+'.gif" border="0" alt="数学爱好者"></a>'+
		'</td><td >\
			<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">\
				<tr class="t13">\
					<td width="75" align="center" id="BBS_Home"  valign="bottom"\
						class="t13w"><a href="/"  style="color:black;cursor:hand">首页</a></td>\
					<td width="85" align="center" id="BBS_Title"  valign="bottom"\
						onclick="window.open(\'/H6.aspx?F=/CMS/Search/Index.P6\')"\
						class="t13w" style="color:black;cursor:hand">数学论坛</td>\
					<td width="85" align="center" id="MATHDIC_Title" valign="bottom" \
						onclick="window.open(\'/H6.aspx?F=/CMS/Search/Index.P6&T=MathDic_&Key=%E8%BE%9E%E5%85%B8\')"\
						class="t13w" style="color:black;cursor:hand">数学辞典</td>\
					<td width="85" align="center" id="MATHTK_Title" valign="bottom" \
						onclick="window.open(\'/H6.aspx?F=/CMS/Search/Index.P6&T=MathTK_&Key=%E9%A2%98%E5%BA%93\')"\
						class="t13w" style="color:black;cursor:hand">数学题库\
					</td>\
					<td width="85" align="center" id="DIC_Title" valign="bottom" \
						onclick="window.open(\'/H6.aspx?F=/CMS/Search/Index.P6&T=Dic_&Key=%E8%8B%B1%E8%AF%AD\')"\
						class="t13w" style="color:black;cursor:hand">数学英语\
					</td>\
					<td width="75" align="right" valign="bottom"\
						class="t13w" style="color:black;cursor:hand"></td>\
					<td   valign="bottom">'+strTop+'</td>\
				</tr>\
			</table>\
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr><td bgcolor="#CC0000" height="2"></td>\
				</tr>\
			</table>\
			<table width="100%" bgcolor="#F7F7F7" ><tr><td width="400">\
			<table border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr>\
					<form id="Search" name="Search" method="post" \
							action="/H6.aspx?F=/CMS/Search/Search.P6">\
						<input id="T" name="T" type="hidden" value="'+glb_strT+'"/>\
						<td  nowrap align="right" valign="middle">\
							<img src="/Common/Skin/User/MathFan/Search/images/search_ico.gif" width="21" height="21" />\
						</td>\
						<td align="center">\
							<input id="Key" name="Key" type="text"  onKeyDown="KeyDownEvent()" \
								class="square" style="width:240;height:22"  value="'+glb_strKey+'"/>\
						</td>\
						<td align="center"><input type="Submit"  value="搜 索" /></td>\
					</form>\
				</tr>\
			</table></td><td></td></tr></table>\
		</td></tr>\
		</table>');
 	
 	strT=strT.toUpperCase();
	if (document.getElementById(strT+"Title")){
		document.getElementById(strT+"Title").bgColor="#CC0000";
		document.getElementById(strT+"Title").style.color="#FFFFFF";
		document.getElementById(strT+"Title").className="Title2";
	}
}
