Mujey ap sab ek help chahye thi.
Basically its regarding the javaScript Validate form: Textboxes, select and check box.

I have found few of the codes however, when I edit them it doesn't work. Can someone please tell me how can I resolve this issue so I can edit the codes and it will still work. Here is the code:
<html>
<head>
<title>Loas</title>
<script language="javascript">
function validate(agree,empty,email,select_box){
if (empty.value == ""){
alert("You must enter a text");
return false;
}
if (agree.checked != 1){
alert("You must agree to the rules");
return false;
}
if (select_box.value == 0){
alert("You must select an option");
return false;
}
}

</script>

</head>
<body>
<form name="form1" action="page1_go.html" method="get" >

Empty: <br />
<input name="empty" type="text" /><br /><br />

Check box: <input name="agree" type="checkbox" value="" /><br /><br />

<select name="select_box">
<option value="0">Please choose</option>
<option value="1">Option 1 </option>
<option value="2">Option 2 </option>
</select>


<input name="submit" type="submit" value="Go!" onclick="return validate(agree,empty,select_box)"/>

</form>
</body>
</html>

but if i edit them they don't work any help plz???