function openscript(url){var Win = window.open(url,'open','width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=yes' );}
function showtb(tbnum){whichEl = eval("tbtype" + tbnum);if (whichEl.style.display == "none"){eval("tbtype" + tbnum + ".style.display=\"\";");}else{eval("tbtype" + tbnum + ".style.display=\"none\";");}}
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array
function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv1");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}
function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
    vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=TBMenu onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=MenuBG>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv1.innerHTML = vMnuCode;
	menuDiv1.style.top = t;
	menuDiv1.style.left = l;
	menuDiv1.style.visibility = "visible";
	isvisible = true;
}
function presskey(eventobject)
{
   if(event.ctrlKey && window.event.keyCode==13){this.document.kbbs.submit();}else{return false}
   }

var userhelp= '├ <a href=bbsmail.asp?id=0>留言板 </a><br>├ <a href=myinfo.asp>修改资料</a><br>├ <a href=elselist.asp?action=mytop>我发表的帖子</a><br>├ <a href=elselist.asp?action=withmetop>我参与的帖子</a><br>├ <a href=elselist.asp?action=newfromlast>上次访问后新帖</a>'