<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/layer_mobile/layer.js"></script>
<script Language="JavaScript" Type="text/javascript">
function check(){
if (document.dkcms.userID.value == ""){
layer.open({
content: '帐号必须正确输入'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
//跳到要输入的框里document.form1.hy_mobile.focus();
return (false);//停止往下运行
};
if (document.dkcms.apassword.value == ""){
layer.open({
content: '密码必须正确输入'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
//跳到要输入的框里document.form1.hy_mobile.focus();
return (false);//停止往下运行
};
if (document.dkcms.apassword.value.length<5){
layer.open({
content: '密码不足6位'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return (false);
};
//下面是判断密码是否一致
var passwd1 = document.getElementById("apassword").value;
var passwd2 = document.getElementById("apassword2").value;
if(passwd1 != passwd2){
layer.open({
content: '两次输入密码不相同'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return (false);
};
//判断结束
};
</script>