var tables = new Array (); tables[0] = new Array (); tables[1] = new Array (); tables[2] = new Array (); tables[3] = new Array (); tables[0][tables[0].length] = "Ivan"; tables[0][tables[0].length] = "klarius"; tables[0][tables[0].length] = "Smurkz"; tables[0][tables[0].length] = "Spooks"; tables[0][tables[0].length] = "tao"; tables[0][tables[0].length] = "Veteran"; // Javascript functions to set and clear checkboxes function set_checkbox (name, state) { var box = document.getElementById (name); box.checked = state; } function set_all (table, state) { // set all Include checkboxes to state for a set of teams var i; for (i=0; i < table.length; i++) set_checkbox (table[i], state); } function toggle_all (table) { var box; var name = "all_"+table; box = document.getElementById (name); state = box.checked; set_all (tables[table], state); } function modify_action () { document.main_form.action="sgotm_submission_list.php#format"; }