function add2cart(PN){ document.codeform.id.value = PN; document.codeform.weight.value = eval("_"+PN+".weight"); document.codeform.price.value = eval("_"+PN+".price"); if (PN.substring(5) == "L"){var units = "Liters per minute"; var range = "10 to 100 l/min.";} if (PN.substring(5) == "G"){var units = "Gallons per minute"; var range = "3 to 30 gpm";} var infotext = " Housing Material: Nylon
"+ " Size & Connection: 1 inch NPT
"+ " Flow Range: "+range+"
"+ " Accuracy: +/- 2.5 %
"+ " Functions: Totalizer only
"+ " Units: "+units+"
" ; document.codeform.info.value = infotext; document.codeform.submit('add'); }