<script  language="javascript"> 
function chkLogin(){
var username = document.showLogin.username.value;
var email=document.showLogin.email.value.indexOf("@");
if(username.length < 1 || username.length > 30){
alert("please make a username at first!");
return false;
}
if(Gender.length < 1 ){
alert("please choose male or female!");
return false;
}
if (My sexuality is.length <1) 
       {
  alert("please select your sexuality...")
  return false;
}
if ("I'm using this site for".length <1 ){
alert("please choose one using site for!");
return false;
}
if(My age is.length< 1 ){
alert("please your age!");
return false;
}
if(email==-1){
alert("please fill your email!");
return false;
}
if(My country.length < 1 ){
alert("please choose your country!");
return false;
}
if(rules.value=no ){
alert("please choose yes!");
return false;
}
document.showLogin.submit();
return false;
}
</script>
........
<form name=showLogin onSubmit="return chkLogin()">.......<input type="text" name="Choose a username"style="width: 184px"  maxLength="20" value="Choose a username"><font size="2">
........
<input  type="submit" name="send" value="A lover waiting you" onclick="return chkLogin()" align="middle">&nbsp;