function checkloginform(){
	var username = document.getElementById("user_name").value;
	var password=document.getElementById("password").value;
	if (username.length<2) {
		alert('请填写用户名!');
		document.getElementById("user_name").focus();
		return false;
	}
	if (password.length<2){
		alert('请填写密码!');
		document.getElementById("password").focus();
		return false;
	}
	document.getElementById('loginbox').className='Hidebox';
    return true;
}

function showloginbox() {
   document.getElementById('loginbox').className='showbox';
}

function Closeloginbox() {
   document.getElementById('loginbox').className='Hidebox';
}

document.writeln('<div id="loginbox" class="Hidebox"><FORM action="/shop/checkuserloginnew.asp" target="_blank" method="post" onSubmit="return checkloginform();"><table width="400" height="30" border="0" cellspacing="0" cellpadding="0"><tr><td height="28" align="right"><img src="http://www.examda.com/zixun/img/close.gif" onclick="Closeloginbox();" style="cursor:pointer" />&nbsp;</td></tr></table><table width="300" border="0" cellspacing="0" cellpadding="5"><tr><td height="40" align="left"> &nbsp; <font color="#0099CC" style="font-size:18px"><strong>用户登录</strong></font></td></tr><tr><td height="30"><input type="text" name="un" value="用户名：" class="logun" disabled="disabled"><input type="text" name="username" id="user_name" class="loginput"></td></tr><tr><td height="30"><input type="text" name="pd" value="密　码：" class="logun" disabled="disabled"><input type="password" name="userpassword" id="password" class="loginput"></td></tr><tr><td height="35" align="left">  &nbsp; <input name="submit" type="submit" value=" 登录 "><input type="hidden" name="Action" value="submit" /> &nbsp; &nbsp; <font color="#666666" style="font-size:14px;">没有帐号？</font> <font color="#0099CC" style="font-size:14px;"><a href="http://www.hozoo.com.cn/reg.asp" target="_blank">注册</a></font></td></tr></table></FORM></div>');