+{if $formName == "Contribute_Preferences"}
+ {literal}
+ <script type="text/javascript">
+ cj(document).ready(function() {
+ if (document.getElementById("invoicing").checked) {
+ cj("#invoicing_blocks").show();
+ }
+ else {
+ cj("#invoicing_blocks").hide();
+ }
+ });
+ cj(function () {
+ cj("input[type=checkbox]").click(function() {
+ if (cj("#invoicing").is(":checked")) {
+ cj("#invoicing_blocks").show();
+ }
+ else {
+ cj("#invoicing_blocks").hide();
+ }
+ });
+ });
+ </script>
+ {/literal}
+{/if}