function catalog_on(id) {
  document.getElementById('arrow' + id ).src='images/product-cat_arrow_on.gif';
  document.getElementById('desctxt'+ id ).style.color='#b90602';
  document.getElementById('desctxt'+ id ).style.fontWeight='bold';
}

function catalog_off(id) {
  document.getElementById('arrow' + id ).src='images/product-cat_arrow_off.gif';
  document.getElementById('desctxt'+ id ).style.color='#666666';
  document.getElementById('desctxt'+ id ).style.fontWeight='normal';
}

function show_Inc_Box() {
  document.getElementById('inc01').style.display='block';
  document.getElementById('inc02').style.display='block';
}

function hide_Inc_Box() {
  document.getElementById('inc01').style.display='none';
  document.getElementById('inc02').style.display='none';
}

function SameAsBilling() {
  document.mainform.usa_s_address1.value      = document.mainform.usa_b_address1.value;
  document.mainform.usa_s_address2.value      = document.mainform.usa_b_address2.value;
  document.mainform.usa_s_city.value          = document.mainform.usa_b_city.value;
  document.mainform.usa_s_state.value         = document.mainform.usa_b_state.value;
  document.mainform.usa_s_zip.value           = document.mainform.usa_b_zip.value;
  document.mainform.non_usa_s_address1.value  = document.mainform.non_usa_b_address1.value;
  document.mainform.non_usa_s_address2.value  = document.mainform.non_usa_b_address2.value;
  document.mainform.non_usa_s_city.value      = document.mainform.non_usa_b_city.value;
  document.mainform.non_usa_s_state.value     = document.mainform.non_usa_b_state.value;
  document.mainform.non_usa_s_zip.value       = document.mainform.non_usa_b_zip.value;
  document.mainform.s_phone.value             = document.mainform.b_phone.value;
  document.mainform.s_phone_ext.value         = document.mainform.b_phone_ext.value;
}

function ContactSameAsBilling() {
  document.mainform.s_contact_name.value      = document.mainform.b_contact_name.value;
  document.mainform.s_contact_phone.value     = document.mainform.b_contact_phone.value;
  document.mainform.s_contact_phone_ext.value = document.mainform.b_contact_phone_ext.value;
  document.mainform.s_contact_fax.value       = document.mainform.b_contact_fax.value;
}

function ChangeAddressRequirements(change_flag, section) {
  if (change_flag == 'usa') {
    document.getElementById('non-usa-'+((section == 'billing') ? 'b' : 's' )+'-address').style.display = 'none';
    document.getElementById('usa-'+((section == 'billing') ? 'b' : 's' )+'-address').style.display = 'block';
  } else {
    document.getElementById('usa-'+((section == 'billing') ? 'b' : 's' )+'-address').style.display = 'none';
    document.getElementById('non-usa-'+((section == 'billing') ? 'b' : 's' )+'-address').style.display = 'block';
  }
}
