function checkLogin(userName,n)
{
	if (n == 0 && userName.value == "用户名"){userName.value="";userName.style.cssText = "color:#000"}
	if (n == 1){
		if(userName.value == "用户名"){userName.value="";}
		userName.style.cssText = "color:#000";
	}
	if (n == 2 && userName.value == ""){userName.value = "用户名";userName.style.cssText = "color:#aaa"}
}

function checkuu()
{
	var userName = myform.elements['username'];
	var password = myform.elements['password'];
   	if(userName.value == "用户名" || userName.value.lentgh == 0){alert("请输入用户名");return false}
	if(password.value == ""){alert("请输入密码");password.focus();return false}
}

document.write ('<table style="margin:0 auto" width="968" border="0" cellpadding="0" cellspacing="0" class="null0"><tr><td background="/images/top_02.gif" align="left" height="75"><div id="TopLogo" ><img src="/images/top_01.gif" width="223" height="75"></div><div id="TopNav"><table border="0" cellpadding="0" cellspacing="0" class="null0"><tr><td>' + topNavHtml + '</td></tr></table></div>');
if(G_UserName == '')
{
	document.write ('<form action="/member/login.asp?url='+ url_address +'" method="post" name="myform" id="myform" onsubmit="return checkuu();"><div id="TopLogin"> 用户名 <input name="username" type="text" id="username" size="10" maxlength="16" value="用户名" style="color:#aaa;" onclick="this.focus();checkLogin(this,0)" onfocus="checkLogin(this,1)" onblur="checkLogin(this,2)" /> 密码 <input name="password" type="password" id="password" size="10" maxlength="16" /><a href="#"> 忘记密码</a><input type="image" src="/images/top_05.gif" id=submit1 name=submit1 style="margin:0 0 0 10px" align="absmiddle"><a href="/member/UserReg.asp" target="_blank"><img src="/images/top_07.gif" id=reg name=reg style="margin:0 0 0 5px" align="absmiddle"></a></div></form>');
}
else
{
	document.write ('<div id="TopLoginOK">会员：' + G_UserName + ' 您好！欢迎莅临“非常短片”创意嘉年华&nbsp; &nbsp;<a href="/member/logout.asp">退出</a>');
	vipstr = '';
	if(G_SYS_VIP == '' || G_SYS_VIP == '0' || G_SYS_VIP == 'False')
	{
		vipstr = '&nbsp;&nbsp;<a href="/member/userinfo.asp">[成为高级会员]</a>';
	}else{
		vipstr = '&nbsp;&nbsp;<a href="/member/userinfo.asp">[修改资料]</a>';
	}
	document.write(vipstr + '</div>');
}
document.write ('</td></tr><tr><td><EMBED src="/flash/banner.swf" width="968" height="380" quality="high" TYPE="application/x-shockwave-flash" wmode="opaque"></EMBED></td></tr>'); 
document.write ('</table>');
