Hi...
I would like to have the form submission fail if the default value selected ( Please select a branch.)
<script type="text/javascript">
function branchChoice(parent,child){
var parent_array = new Array();
parent_array[''] = ['Please select a branch.'];
parent_array['April 6 - Canberra'] = ['Please select a branch.','Fyshwick'];
parent_array['April 13 - Melbourne Outer Eastern Suburbs'] = ['Please select a branch.','Ringwood','Bayswater','Lilydale','Other'];
parent_array['April 20 - Melbourne Southern Suburbs'] = ['Please select a branch.','Cheltenham','Braeside','Moorabbin','Other'];
parent_array['May 4 - Mornington Peninsula'] = ['Please select a branch.','Rosebud','Mornington','Dromana','Hastings','Other'];
parent_array['May 18 - Sydney'] = ['Please select a branch.','Minchinbury','Moorebank','Penrith','Other'];
parent_array['May 26 - Ballarat & Ballarat West'] = ['Please select a branch.','Ballarat','Ballarat West','Other'];
parent_array['June 29 - Swan Hill'] = ['Please select a branch.','Swan Hill','Other'];
parent_array['July 6 - Melbourne North West Suburbs'] = ['Please select a branch.','Keilor East','Sunshine','Brunswick','Airport West','Other'];
parent_array['July 20 - Melbourne Outer South East Suburbs'] = ['Please select a branch.','Pakenham','Cranbourne','Narre Warren','Other'];
parent_array['August 3 - Melbourne Inner South East Suburbs'] = ['Please select a branch.','Mulgrave','Rowville','Burwood', 'Oakleigh','Other'];
parent_array['August 24 - South Australia'] = ['Please select a branch.','Hindmarsh','Salisbury North ','Somerton Park', 'Stepney','Other'];
parent_array['September 7 - Darwin'] = ['Please select a branch.','Coolalinga','Darwin','Palmerston','Other'];
parent_array['September 21 - Queensland'] = ['Please select a branch.','Meadowbrook','Nerang','Tingalpa','Virginia','Other'];
parent_array['October 5 - Bendigo'] = ['Please select a branch.','Bendigo','Other'];
parent_array['October 12 - Mildura'] = ['Please select a branch.','Mildura','Other'];
parent_array['October 18 - Melbourne Western Suburbs'] = ['Please select a branch.','Yarraville','Williamstown','Laverton','Werribee','Other'];
var thechild = document.getElementById(child);
thechild.options.length = 0;
var parent_value = parent.options[parent.selectedIndex].value;
if (!parent_array[parent_value]) parent_value = '';
thechild.options.length = parent_array[parent_value].length;
for(var i=0;i<parent_array[parent_value].length;i++){
thechild.options[i].text = parent_array[parent_value][i];
thechild.options[i].value = parent_array[parent_value][i];} }
</script>