+my $javascript = <<END;
+ <SCRIPT TYPE="text/javascript">
+ function rescom_changed() {
+ var f = document.edit_topform;
+ var c = f.company;
+ if ( f.residential_commercial_Residential.checked ) {
+ c.disabled = true;
+ c.style.backgroundColor = '#dddddd';
+ } else if ( f.residential_commercial_Commercial.checked ) {
+ c.disabled = false;
+ c.style.backgroundColor = '#ffffff';
+ }
+ }
+ </SCRIPT>
+END
+