function selects_onload() { load_products(getElementByClass("select_product")); load_testgroups(getElementByClass("select_testgroup")); load_subgroups(getElementByClass("select_subgroup")); load_platforms(getElementByClass("select_platform")); load_opsyses(getElementByClass("select_opsys")); load_branches(getElementByClass("select_branch")); } function load_products(selects) { if (!selects) { return; } // for each select box in selects, load in the list of products for (var select=0; select containing the list of possible default values // and the current value, returns true if the current value appears in // defaultInput, otherwise returns false function isDefault(defaultInput, curvalue) { if (! defaultInput) { return false; } var defaultarray = defaultInput.value.split(','); for (var i=0; i