function Valid_Input(theForm) {    
	if(theForm.LoginName.value=="")   
	{  	alert("请输入用户名！");  
		theForm.LoginName.focus();  
		return false;  	  
	}  
	if(theForm.Loginpassword.value=="")  
	{  	alert("请输入口令！");  
		theForm.Loginpassword.focus();  
		return false;  
	}   	  
   	return true;	  
}
document.write("<table width='180' border='0' cellspacing='0' cellpadding='0'>");
document.write("<FORM id=form1 action='/files/login.asp' name=form1  method=post    onSubmit= 'return Valid_Input(this);'>");
document.write("<tr>");
document.write("<td width='80' height='30' align='center'>用户名：</td>");
document.write("<td><input type=TEXT maxsize=32 value='' name='LoginName' style='width:110;border:1 solid #9a9999; font-size:12px; background-color:#f8f8f8' size=10></td>");
document.write("</tr>");
document.write("<tr> ");
document.write("<td width='80' hheight='30' align='center'>密　码：</td>");
document.write("<td><input type=password maxsize=32 value='' name='Loginpassword' style='width:110;border:1 solid #9a9999; font-size:12px; background-color:#f8f8f8' size=10></td>");
document.write("</tr>");

document.write("<tr> ");
document.write("<td height='30' colspan='2' align='center'><a href='javascript:form1.submit()' target='_blank'><input type=image  src='/images/bu1.gif' width='67' height='18'></a>  <a href='/files/reg1.asp'><img src='/images/bu2.gif' width='67' height='18' border='0'></a></td>");
document.write("</tr>");
document.write("</form>");
document.write("</table>");
