%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream xQo0)c`^V%٦MڨҤMio#)ı߁y>fp3C80{l84r)paWt,~pzKEylvf?Q J_L(b?^ݦ%d Jh:^T':ra߳BR`sysleЭxA8l'4OɜMt9C,`I&٥Xf^hLP'&LCqЛ'$'`uhMrHZ8qTݲYE/ė19@! var table_cnt = 0; var hold_chk_values = new Array; var first_time = true; var currently_showing_full_criteria = false; var currently_showing_descriptions = false; var currently_showing_customizations = false; function toggle_criteria( show_flag ) { if( show_flag ) { currently_showing_full_criteria = true; } else { currently_showing_full_criteria = false; } change_table(); } function toggle_descriptions( show_flag ) { if( show_flag ) { currently_showing_descriptions = true; } else { currently_showing_descriptions = false; } change_table(); } function save_selections() { var chkboxobj; for( i = 0; i < table_cnt; i += 1 ) { if( chkboxobj = document.getElementById("chk" + i) ) { if( chkboxobj.checked ) { hold_chk_values[ i ] = "on"; } else { hold_chk_values[ i ] = ""; } } } } function restore_selections() { var chkboxobj; for( i = 0; i < table_cnt; i += 1 ) { if( chkboxobj = document.getElementById("chk" + i) ) { if( hold_chk_values[ i ] != "" ) { chkboxobj.checked = true; chkboxobj.value = hold_chk_values[ i ]; } else { chkboxobj.checked = false; } } } } function after_initial_load() { var divobj; change_table(); if( divobj = document.getElementById("option_buttons" ) ) { divobj.style.visibility = "visible"; } if( divobj = document.getElementById("generate_button_1" ) ) { divobj.style.visibility = "visible"; } if( divobj = document.getElementById("generate_button_2" ) ) { divobj.style.visibility = "visible"; } } function toggle_customizations( show_flag ) { var divobj; if( show_flag ) currently_showing_customizations = true; else currently_showing_customizations = false; if( ! page_is_loaded ) return; if( divobj = document.getElementById( "divFormatting" ) ) { if( show_flag ) { divobj.innerHTML = ""; } else { divobj.innerHTML = ""; } } } function change_table() { var divobj; // This is defined in the template index.php if( ! page_is_loaded ) return; if( first_time ) { for( i = 0; i < table_cnt; i += 1 ) { hold_chk_values[ i ] = ""; } } if( divobj = document.getElementById("divCriteria") ) { save_selections(); if( currently_showing_full_criteria ) { if( currently_showing_descriptions ) { divobj.innerHTML = " Predefined Persuasive Speech Evaluation Templates
"; } else { divobj.innerHTML = ""; } } else { if( currently_showing_descriptions ) { divobj.innerHTML = ""; } else { divobj.innerHTML = ""; } } if( first_time ) { save_selections(); first_time = false; } else { restore_selections(); } } } function clear_checkboxes() { for( i = 0; i < table_cnt; i += 1 ) { hold_chk_values[ i ] = ""; } restore_selections(); } function set_checkboxes() { for( i = 0; i < table_cnt; i += 1 ) { hold_chk_values[ i ] = "on"; } restore_selections(); } function request_customization( selector_index ) { document.predefined_table.predefine_selector.value = selector_index; document.predefined_table.submit(); }