-<?--("iterate over an empty template, so we have the states already loaded for below")><?ITERATE("SIEVE:SCRIPTS", ="sieve_empty")>
-<script type="text/javascript">
-
- var previously_active_script;
-
- function ToggleSievePanels() {
- d = ($('sieveform').bigaction.options[$('sieveform').bigaction.selectedIndex].value);
- for (i=0; i<3; ++i) {
- if (i == d) {
- $('sievediv' + i).style.display = 'block';
- }
- else {
- $('sievediv' + i).style.display = 'none';
- }
- }
- }
-
- function ToggleScriptPanels() {
- d = ($('sieveform').active_script.options[$('sieveform').active_script.selectedIndex].value);
- if ($('script_' + previously_active_script)) {
- $('script_' + previously_active_script).style.display = 'none';
- }
- $('script_' + d).style.display = 'block';
- previously_active_script = d;
- }
-</script>
-