I am making a dynamic form from db and want to do a js validation to check if atleast one field is filled following code is always returning alert any ideas why....<BR><BR>function searchClause() <BR>{ <BR> var CBs = document.admin_search.search_value.length; <BR> var counter = 0; <BR> for ( var cbNum = 0; cbNum &#060; CBs.length; ++cbNum ) <BR> if (cbNum == "" )<BR> { <BR> alert( "Please enter a search criteria." ); <BR> return false; <BR> } <BR> <BR> else<BR> {<BR> return true; <BR> }<BR>}