function add2cart(PN, PN2, func, psi){ if (func == "SR") { var func = "Spring return";} if (func == "DA") { var func = "Double acting";} document.codeform.id.value = PN2; document.codeform.weight.value = eval(PN+".weight"); document.codeform.price.value = eval(PN+".price"); var infotext = " Design: "+func+" Rack and Pinion
"; if (func == "Spring return") { infotext += " Number of Springs: "+psi+"
"; } if (func == "Spring return") { var torque = eval(PN+".torque"); var torque = torque.replace("
", " "); infotext += " Output Torque (80 psi air): "+torque+" lbf.in
"; } else { infotext += " Output Torque (80 psi air): "+eval(PN+".torque80")+" lbf.in
"; infotext += " Output Torque (60 psi air): "+eval(PN+".torque60")+" lbf.in
"; } infotext += " ISO 5211 Direct Mount: "+eval(PN+".ISO")+"
"+ " Female Drive Shaft: "+eval(PN+".stem")+"
" ; if (func == "Spring return") { infotext += " Fail Position: closed
"; } infotext += " Temperature Range: -4°F to 175°F
"; document.codeform.info.value = infotext; document.codeform.submit('add'); } function add2cart2(PN, PN2, psi, price, weight){ var func = "Spring return" document.codeform.id.value = PN; document.codeform.weight.value = weight; document.codeform.price.value = price; var infotext = " Design: "+func+" Rack and Pinion
"; if (func == "Spring return") { infotext += " Number of Springs: "+psi+"
"; } infotext += " Output Torque: refer to datasheet
"; infotext += " ISO 5211 Direct Mount: "+eval(PN2+".ISO")+"
"+ " Female Drive Shaft: "+eval(PN2+".stem")+"
" ; if (func == "Spring return") { infotext += " Fail Position: closed
"; } document.codeform.info.value = infotext; document.codeform.submit('add'); }