Hi All

I have a form that has 3 blocks of fields to enter data and all fields need to be filled in, so i am using a validator that just checks all the fields contain a value...

Code:
		function checklistvalue() {
		        if(document.forms.submitJobs.Destination_1.value !== '' &&
		           document.forms.submitJobs.Destination_2.value !== '' &&
		           document.forms.submitJobs.Destination_3.value !== '' &&
		           document.forms.submitJobs.Cargo_1.value !== '' &&
		           document.forms.submitJobs.Cargo_2.value !== '' &&
		           document.forms.submitJobs.Cargo_3.value !== '' &&
		           document.forms.submitJobs.Type_1.value !== '' &&
		           document.forms.submitJobs.Type_2.value !== '' &&
		           document.forms.submitJobs.Type_3.value !== '' &&
		           document.forms.submitJobs.Time_1.value !== '' &&
		           document.forms.submitJobs.Time_2.value !== '' &&
		           document.forms.submitJobs.Time_3.value !== '' &&
		           document.forms.submitJobs.Miles_1.value !== '' &&
		           document.forms.submitJobs.Miles_2.value !== '' &&
		           document.forms.submitJobs.Miles_3.value !== ''
		          )
		    {
		       return true;
		    }
		    alert('Please select values in all lists');
		    return false;
		}
Now i need to make the form dynamic so the user can add new blocks, each block will contain the same fields and be identified by the number at the end of the name, what i need is the above function to work dynamically so if the user adds 2 more rows the function will validate the added rows as well as the default ones.

Any help with this would be much appreciated as Java-script hurts my head.