你的button名字跟函数名一样了,冲突了,把button的name改了就行了<script language="javascript">
function CheckNike(){
if(document.form1.nike.value!=""){
alert("....");
}else{
alert("1111");
}
}
</script>
<form action="reg1.asp" method="post" name="form1">      <input type="text" size="30" name="nike">
      <input onclick="javascript:CheckNike()" type="button" value="检测 ID" name="checkBu" Class="btn"></form>