Hi all
I get this message: Can't have 'break' outside of loop with this code to validate that the fields have been entered.
How do I get rid of this message? Thank you

Code:
<script type="text/javascript">
  function validate_affil(){
  	var v =  true;
  		$('.validate_affil').each(function(){
  			if( $.trim($(this).val()) == '' ){
  				alert('The fields marked (*) are required')
  				v = false;
  				break;
  			}
  		});
  	return v;
  }
</script>

<div class="SignupForm" class="width:100%;">
<form onsubmit='return validate_affil();' action="signup.php" method="post" style="border:0px solid;color:black;" id="icpsignup8855">


<fieldset style="border:0px;">
<label>Email*<input type="text" name="username" size="10" class='validate_affil' ></label>
<label>Name*<input type="text" name="firstname" size="10"  class='validate_affil' ></label>
<label>Surname*<input type="text" name="lastname" size="10"  class='validate_affil' ></label>
	   <input type="hidden" name="parentuserid" id="parentuserid" value="" /> </fieldset> 
	  <div id="FormMessage"></div>
	   <input type="image" name="submit" value="Register" src="image/register.png" width="124" height="25" alt="Send" />
        
	</div>
</form>

<script id="pap_x2s6df8d" src="salejs.php" type="text/javascript"></script>
                          <script type="text/javascript">
                            PostTracker.writeAffiliateToCustomField('parentuserid');
                          </script>

</div>
</div>