<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> 用户注册 </title>
<script language="javascript">
function textA(){
var txt = document.info.username.value;
if(txt == "" || !isNaN(txt.charAt(0))){
document.getElementById("t1").innerHTML = "<font color='red'> 首字母不能为
数字或者用户名不能为空 </font>";
return false;
} else{
document.getElementById("t1").innerHTML = "<font color='green'> 用户名合格
</font>";
return true;
}
}
function passA(){
var pas = document.info.pass.value;
if(pas.length<6){
document.getElementById("t2").innerHTML = "<font color='red'> 密码长度不能
小于 6 位</font>";
return false;
}else if(!isNaN(pas)){
document.getElementById("t2").innerHTML ="<font color='red'> 密码不能全是
数字 </font>";
return false;
}else{
document.getElementById("t2").innerHTML ="<font color='green'> 密 码 合 格
</font>";
return true;
}
}
function passB(){
var pas =document.info.pass.value;
var pas1=document.info.pass1.value;
if(pas!=pas1){
document.getElementById("t3").innerHTML="<font color='red'> 密码输入必须一
致</font>";
return false;
}else{
document.getElementById("t3").innerHTML="<font color='green'> 密码输入一致