<!-- //
function makewin(targurl, width, height, winopts){if(window.sidebars == null){sidebars = new Object;sidebars.length = 1;}allopts ="width=" + width + ",height=" + height + "," + winopts;var tempref = window.open(targurl, "sidebar" + sidebars.length, allopts);sidebars[sidebars.length] = tempref;sidebars.length++;}
function killwins(){if(navigator.appName !="Microsoft Internet Explorer"){if(window.sidebars != null){for(i = 1; i < sidebars.length; i++){sidebars[i].close();}}}}
function MM_reloadPage(init){if(init==true) with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;}} else if(innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
/* Quantity, Item, Price Calculator */
function dp(price)
{
   string ="" + price;
   number = string.length - string.indexOf('.');
   if (string.indexOf('.') == -1)
      return string + '.00';
   if (number == 1)
      return string + '00';
   if (number == 2)
      return string + '0';
   if (number > 3)
      return string.substring(0,string.length-number+3);
return string;
}

function calculate()
{
document.calcform.total1.value = dp((document.calcform.price1.value)*(document.calcform.quantity1.value))
document.calcform.total2.value = dp((document.calcform.price2.value)*(document.calcform.quantity2.value))
document.calcform.total3.value = dp((document.calcform.price3.value)*(document.calcform.quantity3.value))
document.calcform.total4.value = dp((document.calcform.price4.value)*(document.calcform.quantity4.value))
document.calcform.total5.value = dp((document.calcform.price5.value)*(document.calcform.quantity5.value))
document.calcform.total6.value = dp((document.calcform.price6.value)*(document.calcform.quantity6.value))
document.calcform.total7.value = dp((document.calcform.price7.value)*(document.calcform.quantity7.value))
document.calcform.total8.value = dp((document.calcform.price8.value)*(document.calcform.quantity8.value))
document.calcform.total9.value = dp((document.calcform.price9.value)*(document.calcform.quantity9.value))
document.calcform.total10.value = dp((document.calcform.price10.value)*(document.calcform.quantity10.value))
document.calcform.total11.value = dp((document.calcform.price11.value)*(document.calcform.quantity11.value))
document.calcform.total12.value = dp((document.calcform.price12.value)*(document.calcform.quantity12.value))
document.calcform.total13.value = dp((document.calcform.price13.value)*(document.calcform.quantity13.value))
document.calcform.total14.value = dp((document.calcform.price14.value)*(document.calcform.quantity14.value))
document.calcform.total15.value = dp((document.calcform.price15.value)*(document.calcform.quantity15.value))
document.calcform.total16.value = dp((document.calcform.price16.value)*(document.calcform.quantity16.value))
document.calcform.total17.value = dp((document.calcform.price17.value)*(document.calcform.quantity17.value))
document.calcform.total18.value = dp((document.calcform.price18.value)*(document.calcform.quantity18.value))
document.calcform.total19.value = dp((document.calcform.price19.value)*(document.calcform.quantity19.value))
document.calcform.total20.value = dp((document.calcform.price20.value)*(document.calcform.quantity20.value))
document.calcform.subtotal.value = dp(eval(document.calcform.total1.value) + eval(document.calcform.total2.value) + eval(document.calcform.total3.value) + eval(document.calcform.total4.value) + eval(document.calcform.total5.value) + eval(document.calcform.total6.value) + eval(document.calcform.total7.value) + eval(document.calcform.total8.value) + eval(document.calcform.total9.value) + eval(document.calcform.total10.value) + eval(document.calcform.total11.value) + eval(document.calcform.total12.value) + eval(document.calcform.total13.value) + eval(document.calcform.total14.value) + eval(document.calcform.total15.value) + eval(document.calcform.total16.value) + eval(document.calcform.total17.value) + eval(document.calcform.total18.value) + eval(document.calcform.total19.value) + eval(document.calcform.total20.value))
}
//-->