<script language=javascript>
function subForm(currentForm)
{
if(currentForm.username.value=="")
{
alert("请输入用户名");
return false;
}
if(currentForm.pwd.value=="")
{
alert("请输入密码");
return false;
}
currentForm.submit();
return true;
}
function subFormDown(currentForm)
{
if(event.keyCode==13)
{
subForm(currentForm);
}
}
</script>