<!--
function SurchargeInfo(item_no, company_no, cust_discount)
{
  window.open('/ecommerce/surcharge/SurchargeInfo.jsp?item_no=' + item_no + '&company_no=' + company_no + '&disc=' + cust_discount,'_blank','toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=220,height=120,screenX=200,screenY=75,top=75,left=200');
}
  
//  Used by product_group.html
function surchargeNotice()
{
  if (document.search.cust_no.value.length > 2 && document.search.user_id.value.length > 5)
  {
    document.write("<style type='text/css'>");
    document.write("span.sn {color: #CC0000; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font: bold;}");
    document.write("a.sidebar:link {color: #CC0000; text-decoration:underline; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font: bold;}");
    document.write("a.sidebar:active {color: #CC0000; text-decoration:underline; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font: bold;}");
    document.write("a.sidebar:visited {color: #CC0000; text-decoration:underline; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font: bold;}");
    document.write("a.sidebar:hover {color: #0072BB; text-decoration:underline; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font: bold;}");
    document.write("</style>");

    document.write("<span class='sn'>Click <a class='sidebar' href='javascript:showSurchargeNotice()'>here</a> for important information on steel pricing.</span>");
  }
}

function showSurchargeNotice()
{
  var domain = document.domain;  
  domain = domain.toLowerCase();

  if (domain.indexOf("productsforindustry.com") != -1 || domain.indexOf("p4i.com") != -1)
    window.open('/ecommerce/surcharge/PFI_Steel_Letter.pdf','_blank','');
  else
    window.open('/ecommerce/surcharge/surcharge_notice.html','_blank','toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=570,height=573,screenX=200,screenY=75,top=75,left=200');
}

function showVendorSteelArticle()
{
  var domain = document.domain;  
  domain = domain.toLowerCase();

  if (domain.indexOf("browncor.com") != -1)
    window.open('/ecommerce/surcharge/vendor_steel_pricing.html','_blank','toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=636,height=310,screenX=200,screenY=75,top=75,left=200');
  else
    window.open('/ecommerce/surcharge/vendor_steel_pricing.html','_blank','toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=636,height=573,screenX=200,screenY=75,top=75,left=200');
}
//-->

