var thule = {
	setState : function(state)
	{
		var vehicle_form = document.forms.vehicle;
		if (state == '5'){
			var checkBoxList = vehicle_form.Checkbox1;
			var isChecked = 0;
			for (var i = 0; i < checkBoxList.length; i++) {
				if (checkBoxList[i].checked) {
					isChecked++;
				}
			}
			if (isChecked == 0) {
				alert('Please select a sport.');
				return false;
			}

		}
		if (state == '6') {
			var mountBoxList = vehicle_form.mount;
			var isChecked = 0;
			if (mountBoxList.length == null) {
				//do non node list
				if (mountBoxList.checked){
					isChecked++;
				}
			}
			else {
				//do loop
				for (var i = 0; i < mountBoxList.length; i++) {
					if (mountBoxList[i].checked){
						isChecked++;
					}
				}
			}
			if (isChecked == 0) {
				alert('Please select a Mount.');
				return false;
			}

		}
		vehicle_form.hidden_state.value = state;
		return true;
	}
			
};
