function check(){
var myForm=document.forms[0];
if(myForm.regname.value.length==0||myForm.regpassword.value.length==0){
    alert("请填写完整信息");
     myForm.rename.focus();
    return false;
}
}