function ShowMenu()
{
var h, w, s;
h = 46;
w = 90;
document.write('');
for(var i = 0; i < 8; i++)
{
s = '';
document.write(s);
}
}
function SetMenuItem(o, i)
{
if(0 == i)
{
o.style.backgroundPosition = o.getAttribute("_s0");
}
else if(1 == i)
{
o.style.backgroundPosition = o.getAttribute("_s1");
$("LayerMenu").style.top = '210px';
$("LayerMenu").style.display = 'inline';
$("LayerMenu").style.left = (GetParentedOffsetLeft(o) + 3) + 'px';
$("LayerMenu").innerHTML = o.getAttribute('_ChildMenu').replace(/\[/gi, '<').replace(/\]/gi, '>');
var j = $("LayerMenu").offsetLeft + $("LayerMenu").offsetWidth;
j = (GetParentedOffsetLeft($("LayerMenu").parentNode) + $("LayerMenu").parentNode.offsetWidth) - j;
if(j < 0)
{
$("LayerMenu").style.left = (parseInt($("LayerMenu").style.left.replace('px', '')) - $("LayerMenu").offsetWidth + o.offsetWidth - 3) + 'px';
}
}
else if(2 == i)
{
o.style.backgroundPosition = o.getAttribute("_s2");
}
}
function GetParentedOffsetLeft(o)
{
var i = 0;
while(o.parentNode.offsetLeft > -1)
{
if(o.tagName != "TD" && o.tagName != "TR" ) i += o.offsetLeft;
o = o.parentNode;
}
return i;
}
function $(sVar)
{
var o = document.getElementById(sVar);
if(o)
return o;
else
return null;
}
function SetMenuFocus(sMenu)
{
if('' == sMenu) sMenu = 'Menu_0';
var o = $(sMenu);
var s = o.getAttribute("_s2");
o.setAttribute("_s0", s);
o.setAttribute("_s1", s);
o.onmouseover();
o.style.backgroundPosition = s;
}
function turnPage(pageNo, pageSize, PageCount, RecordCount, thePageUrl){
document.write(" 共 " + RecordCount + " 条, 每页 " + pageSize +" 条 第 " + pageNo + "/" + PageCount + " 页 ");
if(pageNo > 1)document.write("首页 上一页");
else document.write("首页 上一页");
if(pageNo < PageCount)document.write(" 下一页 尾页");
else document.write(" 下一页 尾页");
if(PageCount > 1){
document.write(" 转到:");
}
}