function log_getcookie(cookiename)
{
	var thebigcookie = unescape(document.cookie);
	var firstchar = thebigcookie.indexOf(cookiename);
	if (firstchar != -1)
	{
		firstchar += cookiename.length + 1;
		lastchar = thebigcookie.indexOf(";",firstchar);
		if(lastchar == -1) lastchar = thebigcookie.length;
		return unescape(thebigcookie.substring(firstchar, lastchar));
	}
	else
		return "";
}

eqlg = log_getcookie("cookie_user_registered");
rturl = document.URL;
if (eqlg == "true")
{
document.write('<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD width=320>');
document.write('<a href="http://www.qy6.com/common/member.php" target=_blank><IMG height=20 alt=中华企业录商务会员服务 hspace=5 src="http://www.qy6.com/images/myqy6.gif" width=108 align=absMiddle border=0></a>| <a href="http://www.qy6.com/common/zzzhy0312.php?t=free">注册</A> | <a href="http://www.qy6.com/common/logout.php">退出</A></TD>');
document.write('<TD><IMG height=15 hspace=5 src="http://www.qy6.com/images/yarrow.gif" width=15 align=absMiddle> <a href="http://www.qy6.com/help/index.php" target=_blank>帮助中心</A></TD></TR></TBODY></TABLE>');
}
else
{
document.write('<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD width=320>');
document.write('<a href="http://www.qy6.com/common/member.php" target=_blank><IMG height=20 alt=中华企业录商务会员服务 hspace=5 src="http://www.qy6.com/images/myqy6.gif" width=108 align=absMiddle border=0></A>| <a href="http://www.qy6.com/common/zzzhy0312.php?t=free">注册</A> | <a href="http://www.qy6.com/common/login.php">登录</A></TD>');
document.write('<TD><IMG height=15 hspace=5 src="http://www.qy6.com/images/yarrow.gif" width=15 align=absMiddle> <a href="http://www.qy6.com/help/index.php" target=_blank>帮助中心</A></TD></TR></TBODY></TABLE>');
}
var selsubmenu=1;
function clksubmenu(i)
{
    	if (selsubmenu==i) return;
        eval("document.all.submenu" + i + ".className = 'BtnSubHead1';");
        eval("document.all.submenu" + selsubmenu + ".className = 'BtnSubHead';");
        selsubmenu = i;
}
