function add2cart(PN, port){
var PartNo = PN.replace(/_/g, "-");
// var PartNo = PN.replace("_", "-");
document.codeform.id.value = PartNo;
document.codeform.weight.value = eval(PN+".weight");
document.codeform.price.value = eval(PN+".price");
if (PN == "FEX_SS_025_075") {
var valveSizes = "1/4 inch to 3/4 inch";
}
if (PN == "FEX_SS_100_125") {
var valveSizes = "1 inch to 1 1/4 inch";
}
if (PN == "FEX_SS_150_200") {
var valveSizes = "1 1/2 inch to 2 inch";
}
if (PN == "FEX_SS_250_400") {
var valveSizes = "2 1/2 inch to 4 inch";
}
if (PN == "FEX_SS_600_800") {
var valveSizes = "6 inch to 8 inch";
}
var infotext = " For Valve Series: HPF, 150F, 300F
"+
" Fits Valve Sizes: "+ valveSizes +"
"+
" Body Material: Stainless Steel A351 Gr CF8M
" +
" Gasket: RPTFE/Graphite
" +
" Stem: 316 Stainless Steel
" +
" Monitoring Port Size: "+ port +"
" +
" Port Plug: 316 Stainless Steel
"
;
document.codeform.info.value = infotext;
document.codeform.imgsrc.value = "/fugitive-emission-containment-pack/models/FEX.jpg";
document.codeform.submit('add');
}