//--------------------------------------------------
// Submit the form through a dropdown selection?
//--------------------------------------------------

function CheckDropdown(form, element, indexes) {
	var submit = true;
	var sidx = document.forms[form].elements[element].selectedIndex;

	// Check all ids

	for (i in indexes) {
		if (indexes[i] == sidx) {
			submit = false;
			break;
		}
	}

	// Should we submit the form?

	if (submit) {
		document.forms[form].submit();
	}
}
