94 lines
3.9 KiB
HTML
94 lines
3.9 KiB
HTML
<html>
|
|
<style type="text/css">
|
|
<!--
|
|
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; background-color: #D3DCE3;}
|
|
td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;}
|
|
form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
textarea{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
|
|
input.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
|
|
input.button {font-family: Verdana; font-size: 8pt}
|
|
select { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
|
|
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
|
|
A:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
|
|
A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
|
|
A:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: underline; color: #FF0000}
|
|
A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
|
|
A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
|
|
A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FF0000}
|
|
.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
|
|
-->
|
|
</style>
|
|
<script language="JavaScript">
|
|
<!--
|
|
function question_Validator(theForm)
|
|
{
|
|
if(theForm.userName.value==''){
|
|
var AccountEmpty="Account cannot be empty";
|
|
alert(AccountEmpty);
|
|
theForm.userName.focus();
|
|
return(false);
|
|
}else if(theForm.password.value==''){
|
|
var PasswordEmpty="Password cannot be empty";
|
|
alert(PasswordEmpty);
|
|
theForm.password.focus();
|
|
return(false);
|
|
}else if(theForm.re_password.value==''){
|
|
var rePasswordEmpty="Confirm Password cannot be empty";
|
|
alert(rePasswordEmpty);
|
|
theForm.re_password.focus();
|
|
return(false);
|
|
}else if(theForm.realName.value==''){
|
|
var InputName="Please input real name";
|
|
alert(InputName);
|
|
theForm.realName.focus();
|
|
return(false);
|
|
}else{
|
|
if(theForm.userName.value.length> 16 || theForm.userName.value.length< 6){
|
|
var userNameLength="Account name digit has a mistake";
|
|
alert(userNameLength);
|
|
theForm.userName.focus();
|
|
return (false);
|
|
}
|
|
if(theForm.password.value.length < 6 || theForm.password.value.length> 16){
|
|
var PasswordLength="Password digit has a mistake";
|
|
alert(PasswordLength);
|
|
theForm.password.focus();
|
|
return (false);
|
|
}
|
|
|
|
if(theForm.re_password.value.length < 6 || theForm.re_password.value.length> 16){
|
|
var rePasswordLength="Confirm Password digit has a mistake";
|
|
alert(rePasswordLength);
|
|
theForm.re_password.focus();
|
|
return (false);
|
|
}
|
|
|
|
if(theForm.password.value != theForm.re_password.value){
|
|
var RepeatPassword="Input Password is not coherent";
|
|
alert(RepeatPassword);
|
|
theForm.re_password.focus();
|
|
return (false);
|
|
}
|
|
if(theForm.realName.value.length> 16){
|
|
var realNameLength="Real name digit has a mistake";
|
|
alert(realNameLength);
|
|
theForm.realName.focus();
|
|
return (false);
|
|
}
|
|
}
|
|
return (true);
|
|
}
|
|
|
|
function set_value(check_box,check_input,check_value)
|
|
{ if(check_box.checked){
|
|
check_input.value=check_value;
|
|
}else{
|
|
check_input.value='';
|
|
}
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
|