Variations Types: <br />
<label for="variants0">Option 1:</label><select id="variants0" name="variants0" onChange="update_dd(this);"></select><br />
<label for="variants1">Option 2:</label><select id="variants1" name="variants1" onChange="update_dd(this);"></select><br />
<label for="variants2">Option 3:</label><select id="variants2" name="variants2" onChange="update_dd(this);"></select><br />
<script language="JavaScript" type="text/javascript">
<!--
//Initialize first select element
var split_types=new Array("", "Size", "Color", "Team", "Player", "Material", "Type", "Flavor");
var select_fields=new Array("variants0","variants1","variants2");
for (var i=0; i<split_types.length; i++){ document.newClassifiedForm.variants0.options[document.newClassifiedForm.variants0.options.length] = new Option(split_types[i], split_types[i]); }
function update_dd(dropdown) {
var split_types=new Array("", "Size", "Color", "Team", "Player", "Material", "Type", "Flavor");
theForm = dropdown.form;
var temp_select_fields = select_fields;
var temp_split_types = split_types;
var temp_variant0 = document.newClassifiedForm.variants0.value;
var temp_variant1 = document.newClassifiedForm.variants1.value;
var temp_variant2 = document.newClassifiedForm.variants2.value;
temp_split_types.splice(temp_split_types.indexOf(dropdown.value), 1);
if (dropdown.name == "variants0") {
var opt1 = document.newClassifiedForm.variants1.options;
var opt2 = document.newClassifiedForm.variants2.options;
opt1.length = 1;
opt2.length = 1;
for (var j=1; j<temp_split_types.length; j++) {
if ((temp_split_types[j] != temp_variant0) || ((temp_split_types[j] != temp_variant1) || (temp_split_types[j] != temp_variant2))) {
opt1[j] = new Option(temp_split_types[j], temp_split_types[j]);
opt2[j] = new Option(temp_split_types[j], temp_split_types[j]);
}
}
document.newClassifiedForm.variants1.value = temp_variant1;
document.newClassifiedForm.variants2.value = temp_variant2;
if (document.newClassifiedForm.variants2.value != "") { document.newClassifiedForm.variants1.remove(document.newClassifiedForm.variants2.selectedIndex); }
}
if (dropdown.name == "variants1") {
var opt1 = document.newClassifiedForm.variants0.options;
var opt2 = document.newClassifiedForm.variants2.options;
opt1.length = 1;
opt2.length = 1;
for (var j=1; j<temp_split_types.length; j++) {
if (temp_split_types[j] != temp_variant1) {
if (temp_split_types[j] != temp_variant0) {
opt2[j] = new Option(temp_split_types[j], temp_split_types[j]);
}
if (temp_split_types[j] != temp_variant2) {
opt1[j] = new Option(temp_split_types[j], temp_split_types[j]);
}
}
}
document.newClassifiedForm.variants0.value = temp_variant0;
document.newClassifiedForm.variants2.value = temp_variant2;
document.newClassifiedForm.variants2.remove(document.newClassifiedForm.variants0.selectedIndex);
}
if (dropdown.name == "variants2") {
var opt1 = document.newClassifiedForm.variants0.options;
var opt2 = document.newClassifiedForm.variants1.options;
opt1.length = 1;
opt2.length = 1;
for (var j=1; j<temp_split_types.length; j++) {
if ((temp_split_types[j] != temp_variant2) || ((temp_split_types[j] != temp_variant1) || (temp_split_types[j] != temp_variant0))) {
opt1[j] = new Option(temp_split_types[j], temp_split_types[j]);
opt2[j] = new Option(temp_split_types[j], temp_split_types[j]);
}
}
document.newClassifiedForm.variants0.value = temp_variant0;
document.newClassifiedForm.variants1.value = temp_variant1;
document.newClassifiedForm.variants0.remove(document.newClassifiedForm.variants1.selectedIndex);
document.newClassifiedForm.variants1.remove(document.newClassifiedForm.variants0.selectedIndex);
}
}
//-->
</script>