function selectModel(pn) { var size = pn.substr(0, 1); var conn = pn.substr(3, 3); var actuator = pn.substr(6, 2); // alert(size); // alert(conn); // alert(act); //----------------------------------- SELECT SIZE ---------------------------- if (size == "A") { document.codeform.Fsize[0].checked=true; } if (size == "B") { document.codeform.Fsize[1].checked=true; } if (size == "C") { document.codeform.Fsize[2].checked=true; } if (size == "D") { document.codeform.Fsize[3].checked=true; } if (size == "E") { document.codeform.Fsize[4].checked=true; } if (size == "F") { document.codeform.Fsize[5].checked=true; } if (size == "G") { document.codeform.Fsize[6].checked=true; } if (size == "H") { document.codeform.Fsize[7].checked=true; } if (size == "J") { document.codeform.Fsize[8].checked=true; } //----------------------------------- SELECT Actuator ---------------------------- if (actuator == "08" || actuator == "06" || actuator == "F8" || actuator == "F6") { // ---- pneumatic document.codeform.actuator[0].checked = 1; // -------------- select pneumatic selectActType('air'); var actuator = pn.substr(6, 3); if (actuator == "08S" || actuator == "06S") { // ---------- O series spring return var actuator = pn.substr(6, 4); var actuatorAcces = pn.substr(10); if (actuator == "08SC") { document.codeform.act_p[0].checked=true; } if (actuator == "08SO") { document.codeform.act_p[1].checked=true; } if (actuator == "06SC") { document.codeform.act_p[2].checked=true; } if (actuator == "06SO") { document.codeform.act_p[3].checked=true; } } if (actuator == "08D") { // ---------- O series double acting document.codeform.act_p[4].checked=true; var actuatorAcces = pn.substr(9); } if (actuator == "06D") { // ---------- O series double acting document.codeform.act_p[5].checked=true; var actuatorAcces = pn.substr(9); } if (actuator == "F8S" || actuator == "F6S") { // ---------- F series spring return var actuator = pn.substr(6, 4); var actuatorAcces = pn.substr(10); if (actuator == "F8SC") { document.codeform.act_p[6].checked=true; } if (actuator == "F8SO") { document.codeform.act_p[7].checked=true; } if (actuator == "F6SC") { document.codeform.act_p[8].checked=true; } if (actuator == "F6SO") { document.codeform.act_p[9].checked=true; } } if (actuator == "F8D") { // ---------- F series double acting document.codeform.act_p[10].checked=true; var actuatorAcces = pn.substr(9); } if (actuator == "F6D") { // ---------- F series double acting document.codeform.act_p[11].checked=true; var actuatorAcces = pn.substr(9); } if (actuatorAcces != "") { // ------------ there are accessories actAccessType = actuatorAcces.substr(0,1); if (actuatorAcces == "P5" || actuatorAcces == "E5" || actuatorAcces == "E5XP" || actuatorAcces == "E5IS") { // ----------- Positioners if (actuatorAcces == "P5") { document.codeform.func_onOff[1].checked = true; document.codeform.pos[0].checked = true; } if (actuatorAcces == "E5") { document.codeform.func_onOff[1].checked = true; document.codeform.pos[1].checked = true; } if (actuatorAcces == "E5XP") { document.codeform.func_onOff[1].checked = true; document.codeform.pos[2].checked = true; } if (actuatorAcces == "E5IS") { document.codeform.func_onOff[1].checked = true; document.codeform.pos[3].checked = true; } } if(actAccessType == "C" || actAccessType == "E" && (actuatorAcces != "E5" && actuatorAcces != "E5XP" && actuatorAcces != "E5IS")) { // --------- SOLENOID solType = actuatorAcces.substr(0,1); solConn = actuatorAcces.substr(1,1); solVolt = actuatorAcces.substr(2,1); if (solType == "E") { document.codeform.sol_type[0].checked=true; } if (solType == "C") { document.codeform.sol_type[1].checked=true; } if (solConn == "3" || solConn == "4" || solConn == "5" || solConn == "6" || solConn == "1") { selectSolType('wpSol');document.codeform.solenoid[1].checked=1; if (solConn == "3") { document.codeform.sol_wp[0].checked=1;} if (solConn == "4") { document.codeform.sol_wp[1].checked=1;} if (solConn == "5") { document.codeform.sol_wp[2].checked=1;} if (solConn == "6") { document.codeform.sol_wp[3].checked=1;} if (solConn == "1") { document.codeform.sol_wp[4].checked=1;} } if (solConn == "2") { selectSolType('xpSol');document.codeform.solenoid[2].checked=1; document.codeform.sol_xp.checked=1; } if (solVolt == "A") { document.codeform.sol_volt[0].checked=1;} if (solVolt == "C") { document.codeform.sol_volt[1].checked=1;} if (solVolt == "E") { document.codeform.sol_volt[2].checked=1;} if (solVolt == "B") { document.codeform.sol_volt[3].checked=1;} if (solVolt == "F") { document.codeform.sol_volt[4].checked=1;} var actuatorAcces = actuatorAcces.substr(3); actAccessType = actuatorAcces.substr(0,1); } if(actAccessType == "Y" || actAccessType == "U") { // --------- LIMIT SWITCH if (actuatorAcces == "YF") { selectLimType('wpLim');document.codeform.limit[1].checked=1;document.codeform.lim_wp[0].checked=1; } if (actuatorAcces == "UA") { selectLimType('wpLim');document.codeform.limit[1].checked=1;document.codeform.lim_wp[1].checked=1; } if (actuatorAcces == "UB") { selectLimType('wpLim');document.codeform.limit[1].checked=1;document.codeform.lim_wp[2].checked=1; } if (actuatorAcces == "YO") { selectLimType('xpLim');document.codeform.limit[2].checked=1;document.codeform.lim_xp[0].checked=1; } if (actuatorAcces == "YH") { selectLimType('xpLim');document.codeform.limit[2].checked=1;document.codeform.lim_xp[1].checked=1; } if (actuatorAcces == "YE") { selectLimType('xpLim');document.codeform.limit[2].checked=1;document.codeform.lim_xp[2].checked=1; } } } } // ----------------- end of pneumatic actuators if (actuator == "V4" || actuator == "R4" || actuator == "S4" || actuator == "K4" || actuator == "B7") { // ---- electric document.codeform.actuator[1].checked = 1; // -------------- select electric selectActType('elec'); var actuator = pn.substr(6, 3); if (actuator == "S4M") { var actuator = pn.substr(6, 5); } if (actuator == "V4A") { document.codeform.act_e[0].checked=true; } if (actuator == "V4B") { document.codeform.act_e[1].checked=true; } if (actuator == "V4F") { document.codeform.act_e[2].checked=true; } if (actuator == "V4A" || actuator == "V4B" || actuator == "V4F") { var actAccess = pn.substring(9); if (actAccess.substring(0,4) == "-2XS") { showHideAccess('V4xs'); document.codeform.V4xs.checked = true; var actAccess = pn.substring(13); } if (actAccess == "-EP420L") { showHideAccess('V4mod'); document.codeform.V4mod.checked = true; document.codeform.V4posType[0].checked = true; document.codeform.V4controlFailPos.checked = false; } if (actAccess == "-EP420H") { showHideAccess('V4mod'); document.codeform.V4mod.checked = true; document.codeform.V4posType[0].checked = true; document.codeform.V4controlFailPos.checked = true; } if (actAccess == "-EP010L") { showHideAccess('V4mod'); document.codeform.V4mod.checked = true; document.codeform.V4posType[1].checked = true; document.codeform.V4controlFailPos.checked = false; } if (actAccess == "-EP010H") { showHideAccess('V4mod'); document.codeform.V4mod.checked = true; document.codeform.V4posType[1].checked = true; document.codeform.V4controlFailPos.checked = true; } } //alert(actAccess); if (actuator == "R4A") { document.codeform.act_e[3].checked=true; } if (actuator == "R4B") { document.codeform.act_e[4].checked=true; } if (actuator == "R4F") { document.codeform.act_e[5].checked=true; } if (actuator == "R4A" || actuator == "R4B" || actuator == "R4F") { var actAccess = pn.substring(9); if (actAccess.substring(0,4) == "-2XS") { showHideAccess('R4xs'); document.codeform.R4xs.checked = true; } } if (actuator == "S4MV2") { document.codeform.act_e[6].checked=true; } if (actuator == "S4MV1") { document.codeform.act_e[7].checked=true; } if (actuator == "S4MV2" || actuator == "S4MV1") { var actuatorAcces = pn.substr(11); if (actuatorAcces == "-BSRC") { document.codeform.S4bat.checked=true; document.codeform.batType[0].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-BSRO") { document.codeform.S4bat.checked=true; document.codeform.batType[1].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP420L") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; showHideAccess('S4mod'); } if (actuatorAcces == "-EP420H") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); } if (actuatorAcces == "-EP010L") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; showHideAccess('S4mod'); } if (actuatorAcces == "-EP010H") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); } if (actuatorAcces == "-EP420H-BSRC") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[0].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP420L-BSRC") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[0].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP010H-BSRC") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[0].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP010L-BSRC") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[0].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP420H-BSRO") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[1].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP420L-BSRO") { document.codeform.S4mod.checked=true; document.codeform.posType[0].checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[1].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP010H-BSRO") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; document.codeform.controlFailPos.checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[1].checked = 1; showHideAccess('S4bat'); } if (actuatorAcces == "-EP010L-BSRO") { document.codeform.S4mod.checked=true; document.codeform.posType[1].checked = 1; showHideAccess('S4mod'); document.codeform.S4bat.checked=true; document.codeform.batType[1].checked = 1; showHideAccess('S4bat'); } } // --------------- END of S4 ----------------- if (actuator == "K4A") { document.codeform.act_e[8].checked=true; } if (actuator == "K4A") { var actAccess = pn.substring(9); if (actAccess == "-EP420L") { showHideAccess('K4mod'); document.codeform.K4mod.checked = true; document.codeform.K4posType[0].checked = true; document.codeform.K4controlFailPos.checked = false; } if (actAccess == "-EP420H") { showHideAccess('K4mod'); document.codeform.K4mod.checked = true; document.codeform.K4posType[0].checked = true; document.codeform.K4controlFailPos.checked = true; } if (actAccess == "-EP010L") { showHideAccess('K4mod'); document.codeform.K4mod.checked = true; document.codeform.K4posType[1].checked = true; document.codeform.K4controlFailPos.checked = false; } if (actAccess == "-EP010H") { showHideAccess('K4mod'); document.codeform.K4mod.checked = true; document.codeform.K4posType[1].checked = true; document.codeform.K4controlFailPos.checked = true; } } if (actuator == "B7A") { document.codeform.act_e[9].checked=true; } if (actuator == "B7B") { document.codeform.act_e[10].checked=true; } if (actuator == "B7A" || actuator == "B7B" || actuator == "B7F") { var actAccess = pn.substring(9); if (actAccess.substring(0,4) == "-2XS") { showHideAccess('B7xs'); document.codeform.B7xs.checked = true; var actAccess = pn.substring(13); } if (actAccess == "-EP420L") { showHideAccess('B7mod'); document.codeform.B7mod.checked = true; document.codeform.B7posType[0].checked = true; document.codeform.B7controlFailPos.checked = false; } if (actAccess == "-EP420H") { showHideAccess('B7mod'); document.codeform.B7mod.checked = true; document.codeform.B7posType[0].checked = true; document.codeform.B7controlFailPos.checked = true; } if (actAccess == "-EP010L") { showHideAccess('B7mod'); document.codeform.B7mod.checked = true; document.codeform.B7posType[1].checked = true; document.codeform.B7controlFailPos.checked = false; } if (actAccess == "-EP010H") { showHideAccess('B7mod'); document.codeform.B7mod.checked = true; document.codeform.B7posType[1].checked = true; document.codeform.B7controlFailPos.checked = true; } } } if (actuator == "M") { document.codeform.actuator[2].checked = 1; // -------------- select manual selectActType('man'); } changeCode(); } function changeCode() { // set vars that don't change and initialize others var con = "NRX"; // =============== changes to NRB if bracket is chosen var sol = ""; var seal = ""; var lim = ""; var pos = ""; var mo = ""; var solVolt = ""; var solType = ""; var solCon = ""; adapt3stagePrice = 0; adapt3stageWeight = 0; adapt3stageName = ""; var bodyMatDescrip = "Body Material: 316 Stainless Steel"; var sizeDescrip = ""; var sealDescrip = ""; var limDescrip = ""; var posDescrip = ""; var solConDescrip = ""; var solVoltDescrip = ""; var solTypeDescrip = ""; var solRatingDescrip = ""; var accessDescrip = ""; // ----------- actuator accesories on assembly var accessoryDescrip = ""; // ------- accesories that ship loose var actpic = ""; var solpic = ""; var limpic = ""; var pospic = ""; var failPos = ""; var accPrice = 0; var priceSum = "Pricing:"; var weightSum = "Weight:"; var limPrice = 0; var limWeight = 0; var solPrice = 0; var solWeight = 0; var posPrice = 0; var posWeight = 0; var moPrice = 0; var hwPrice = 0; var price = 0; var accessPrice = 0; var accessoryPrice = 0; var assemblyWeight = 0; var accessWeight = 0; var accessoryWeight = 0; var actcad = ""; var B7mod = ""; var B7xs = ""; var V4mod = ""; var V4xs = ""; var modDescrip = ""; var R4xs = ""; var qe = ""; var K4mod = ""; var S4mod = ""; var S4bat = ""; var S4din = ""; var s4kitName = ""; QEPrice = 0; QEWeight = 0; QEName = ""; var actDescrip = ""; var solDescrip = ""; var limDescrip = ""; var posDescrip = ""; var qeDescrip = ""; var mopic = ""; var step1summary = ""; var step2summary = ""; var step3summary = ""; var alertNote = ""; // ====================== reset classes of all selection divs and table cells to UN-selected state resetSizeDivs(); resetSolDivs(); resetLimDivs(); resetPosDivs(); resetFuncDivs(); document.getElementById('wiringIcon').style.display="none"; document.codeform.sol_type[0].disabled=0; document.getElementById('sol_type1').style.color="#000000"; // ================================================ VALVE ==================================================== if (document.codeform.series[0].checked) { document.getElementById('series1').className='selectionChecked'; document.getElementById('series2').className='selection'; document.getElementById('150F300F').style.display=''; document.getElementById('HPF').style.display='none'; } if (document.codeform.series[1].checked) { document.getElementById('series2').className='selectionChecked'; document.getElementById('series1').className='selection'; document.getElementById('150F300F').style.display='none'; document.getElementById('HPF').style.display=''; var ser = "HPF"; } // ================================================ SIZE ==================================================== if (document.codeform.series[0].checked) { if (document.codeform.Fsize[0].checked) { document.getElementById('Fsize1').className="selectionChecked"; var con = "150"; var siz = "C"; var sizeDescrip = "1/2 inch 150# ANSI Flange"; } if (document.codeform.Fsize[1].checked) { document.getElementById('Fsize2').className="selectionChecked"; var con = "150"; var siz = "D"; var sizeDescrip = "3/4 inch 150# ANSI Flange"; } if (document.codeform.Fsize[2].checked) { document.getElementById('Fsize3').className="selectionChecked"; var con = "150"; var siz = "E"; var sizeDescrip = "1 inch 150# ANSI Flange"; } if (document.codeform.Fsize[3].checked) { document.getElementById('Fsize4').className="selectionChecked"; var con = "150"; var siz = "G"; var sizeDescrip = "1 1/2 inch 150# ANSI Flange"; } if (document.codeform.Fsize[4].checked) { document.getElementById('Fsize5').className="selectionChecked"; var con = "150"; var siz = "H"; var sizeDescrip = "2 inch 150# ANSI Flange"; } if (document.codeform.Fsize[5].checked) { document.getElementById('Fsize6').className="selectionChecked"; var con = "150"; var siz = "J"; var sizeDescrip = "3 inch 150# ANSI Flange"; } if (document.codeform.Fsize[6].checked) { document.getElementById('Fsize7').className="selectionChecked"; var con = "150"; var siz = "K"; var sizeDescrip = "4 inch 150# ANSI Flange"; } if (document.codeform.Fsize[7].checked) { document.getElementById('Fsize8').className="selectionChecked"; var con = "150"; var siz = "M"; var sizeDescrip = "6 inch 150# ANSI Flange"; } if (document.codeform.Fsize[8].checked) { document.getElementById('Fsize9').className="selectionChecked"; var con = "150"; var siz = "N"; var sizeDescrip = "8 inch 150# ANSI Flange"; } if (document.codeform.Fsize[9].checked) { document.getElementById('Fsize10').className="selectionChecked"; var con = "300"; var siz = "C"; var sizeDescrip = "1/2 inch 300# ANSI Flange"; } if (document.codeform.Fsize[10].checked) { document.getElementById('Fsize11').className="selectionChecked"; var con = "300"; var siz = "D"; var sizeDescrip = "3/4 inch 300# ANSI Flange"; } if (document.codeform.Fsize[11].checked) { document.getElementById('Fsize12').className="selectionChecked"; var con = "300"; var siz = "E"; var sizeDescrip = "1 inch 300# ANSI Flange"; } if (document.codeform.Fsize[12].checked) { document.getElementById('Fsize13').className="selectionChecked"; var con = "300"; var siz = "G"; var sizeDescrip = "1 1/2 inch 300# ANSI Flange"; } if (document.codeform.Fsize[13].checked) { document.getElementById('Fsize14').className="selectionChecked"; var con = "300"; var siz = "H"; var sizeDescrip = "2 inch 300# ANSI Flange"; } if (document.codeform.Fsize[14].checked) { document.getElementById('Fsize15').className="selectionChecked"; var con = "300"; var siz = "J"; var sizeDescrip = "3 inch 300# ANSI Flange"; } if (document.codeform.Fsize[15].checked) { document.getElementById('Fsize16').className="selectionChecked"; var con = "300"; var siz = "K"; var sizeDescrip = "4 inch 300# ANSI Flange"; } if (document.codeform.Fsize[16].checked) { document.getElementById('Fsize17').className="selectionChecked"; var con = "300"; var siz = "M"; var sizeDescrip = "6 inch 300# ANSI Flange"; } if (document.codeform.Fsize[17].checked) { document.getElementById('Fsize18').className="selectionChecked"; var con = "300"; var siz = "N"; var sizeDescrip = "8 inch 300# ANSI Flange"; } } if (document.codeform.series[1].checked) { if (document.codeform.Hsize[0].checked) { document.getElementById('Hsize1').className="selectionChecked"; var con = "N"; var siz = "C"; var sizeDescrip = "1/2 inch NPT"; } if (document.codeform.Hsize[1].checked) { document.getElementById('Hsize2').className="selectionChecked"; var con = "N"; var siz = "D"; var sizeDescrip = "3/4 inch NPT"; } if (document.codeform.Hsize[2].checked) { document.getElementById('Hsize3').className="selectionChecked"; var con = "N"; var siz = "E"; var sizeDescrip = "1 inch NPT"; } if (document.codeform.Hsize[3].checked) { document.getElementById('Hsize4').className="selectionChecked"; var con = "N"; var siz = "G"; var sizeDescrip = "1 1/2 inch NPT"; } if (document.codeform.Hsize[4].checked) { document.getElementById('Hsize5').className="selectionChecked"; var con = "N"; var siz = "H"; var sizeDescrip = "2 inch NPT"; } if (document.codeform.Hsize[5].checked) { document.getElementById('Hsize6').className="selectionChecked"; var con = "N"; var siz = "J"; var sizeDescrip = "3 inch NPT"; } if (document.codeform.Hsize[6].checked) { document.getElementById('Hsize7').className="selectionChecked"; var con = "N"; var siz = "K"; var sizeDescrip = "4 inch NPT"; } if (document.codeform.Hsize[7].checked) { document.getElementById('Hsize8').className="selectionChecked"; var con = "S"; var siz = "C"; var sizeDescrip = "1/2 inch NPT"; } if (document.codeform.Hsize[8].checked) { document.getElementById('Hsize9').className="selectionChecked"; var con = "S"; var siz = "D"; var sizeDescrip = "3/4 inch NPT"; } if (document.codeform.Hsize[9].checked) { document.getElementById('Hsize10').className="selectionChecked"; var con = "S"; var siz = "E"; var sizeDescrip = "1 inch NPT"; } if (document.codeform.Hsize[10].checked) { document.getElementById('Hsize11').className="selectionChecked"; var con = "S"; var siz = "G"; var sizeDescrip = "1 1/2 inch NPT"; } if (document.codeform.Hsize[11].checked) { document.getElementById('Hsize12').className="selectionChecked"; var con = "S"; var siz = "H"; var sizeDescrip = "2 inch NPT"; } if (document.codeform.Hsize[12].checked) { document.getElementById('Hsize13').className="selectionChecked"; var con = "S"; var siz = "J"; var sizeDescrip = "3 inch NPT"; } if (document.codeform.Hsize[13].checked) { document.getElementById('Hsize14').className="selectionChecked"; var con = "S"; var siz = "K"; var sizeDescrip = "4 inch NPT"; } } // =============== SEALS ========================== if (document.codeform.sealF[0].checked) { document.getElementById('Fseal1').className="selectionChecked"; var seal = ""; var sealDescrip = "TFM"; } if (document.codeform.sealF[1].checked) { document.getElementById('Fseal2').className="selectionChecked"; var seal = "G"; var sealDescrip = "Graphite (Fire Tested to API607-4 & 5"; } // =============== BODY MATERIAL ========================== if (document.codeform.matF[0].checked) { document.getElementById('Fmat1').className="selectionChecked"; var mat = "C"; var bodyMatDescrip = "Body Material: Carbon Steel"; } if (document.codeform.matF[1].checked) { document.getElementById('Fmat2').className="selectionChecked"; var mat = "S"; var bodyMatDescrip = "Body Material: Stainless Steel"; } // =============== SEATS ========================== if (document.codeform.seatF[0].checked) { document.getElementById('Fseat1').className="selectionChecked"; var seat = "F"; var seatDescrip = "TFM"; } if (document.codeform.seatF[1].checked) { document.getElementById('Fseat2').className="selectionChecked"; var seat = "S"; var seatDescrip = "50%/50% SS/TFE"; } if (document.codeform.series[0].checked) { var ser = con+"F"; var sizvar = con + "F" + mat + seat +"_"+siz; var valser = ""; var serPic = "F"; var man = "M"; if (siz == "M" || siz == "N") { var man = "N"; } var basePricer=siz+ser+seal+mat+seat+man; //alert(basePricer); } if (document.codeform.series[1].checked) { var ser = con+"F"; var sizvar = "HPF"+con+mat+ seat +"_"+siz; var valser = "HPF"; var serPic = "H"+con; var basePricer=siz+"HPF"+con+"G"+mat+seat+"M"; } var con = con + "F" + seal + mat + seat; var sizeDescrip = "Size and Connection: "+sizeDescrip; var sealDescrip = "Seal Material: "+sealDescrip; var seatDescrip = "Seat Material: "+seatDescrip; var portDescrip = "Port: Full-port"; var step1summary = bodyMatDescrip + "
" + sizeDescrip + "
" + sealDescrip + "
" + seatDescrip + "
"+portDescrip; document.getElementById('step1summary').innerHTML = step1summary; // ================================================= ACTUATORS ============================================= resetAirActDivs(); // ============================================= AIR ====================================================== //----- F Series ------------------------------------------------- F Series -------------------------------------------- F Series ----------------- if (document.codeform.act_p[0].checked) { document.getElementById('act_p1').className="selectionChecked"; var act = "F8SC"; var solType = "C"; var actPsi = "80"; var actn = "FSR8"; var actpic = "FSR"; var actcad = "F8S"; var failPos = " (Fail CLOSED)"; var actDescrip = "F series rack and pinion actuator, spring return "+failPos+" sized for use with "+actPsi+" psi supply air";} if (document.codeform.act_p[1].checked) { document.getElementById('act_p2').className="selectionChecked"; var act = "F8SO"; var solType = "C"; var actPsi = "80"; var actn = "FSR8"; var actpic = "FSR"; var actcad = "F8S"; var failPos = " (Fail OPEN)"; var actDescrip = "F series rack and pinion actuator, spring return "+failPos+" sized for use with "+actPsi+" psi supply air";} if (document.codeform.act_p[2].checked) { document.getElementById('act_p3').className="selectionChecked"; var act = "F6SC"; var solType = "C"; var actPsi = "60"; var actn = "FSR6"; var actpic = "FSR"; var actcad = "F6S"; var failPos = " (Fail CLOSED)"; var actDescrip = "F series rack and pinion actuator, spring return "+failPos+" sized for use with "+actPsi+" psi supply air";} if (document.codeform.act_p[3].checked) { document.getElementById('act_p4').className="selectionChecked"; var act = "F6SO"; var solType = "C"; var actPsi = "60"; var actn = "FSR6"; var actpic = "FSR"; var actcad = "F6S"; var failPos = " (Fail OPEN)"; var actDescrip = "F series rack and pinion actuator, spring return "+failPos+" sized for use with "+actPsi+" psi supply air";} // ======================================= FireChek ====================================== if (document.codeform.temp[0].checked) { var temp = "165"; document.getElementById('temp1').className = "selectionChecked"; } if (document.codeform.temp[1].checked) { var temp = "150"; document.getElementById('temp2').className = "selectionChecked"; } if (document.codeform.temp[2].checked) { var temp = "135"; document.getElementById('temp3').className = "selectionChecked"; } // ======================================= ON / OFF ====================================== if (document.codeform.func_onOff[0].checked) { document.getElementById('onOffSelection').className = "selectionChecked"; // ===================================================== Limit Switches ======================================================= // ------------------ Disable ASCO solenoid if XP limit switch is NOT chosen --------------------- if ((document.codeform.limit[1].checked && document.codeform.lim_wp[0].checked == 0)|| document.codeform.limit[0].checked) { document.getElementById('sol_xp2').className="selectionDisabled"; document.codeform.sol_xp[1].disabled = 1; document.codeform.sol_xp[0].checked = 1; } else { document.getElementById('sol_xp2').className="selection"; document.codeform.sol_xp[1].disabled = 0; } if (document.codeform.limit[1].checked) { // ===================================================== WeatherProof Limit Switches ============================ if (document.codeform.lim_wp[0].checked) { document.getElementById('lim_wp1').className="selectionChecked"; var lim = "YF"; var limpic="YF"; var limDescrip = "[YF] Mechanical, (2) SPDT"; var limPrice = YF.price + LABUNIT.price; var limWeight = YF.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + "("+lim+" + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + "("+lim+")"; } if (document.codeform.lim_wp[1].checked) { document.getElementById('lim_wp2').className="selectionChecked"; var lim = "UA"; var limpic="UB"; var limDescrip = "[UA] Efector AC/DC (non-contact)"; var limPrice = IFIN0117.price + IFUV0002.price + IFE18042.price + LABUNIT.price; var limWeight = IFIN0117.weight + IFUV0002.weight + IFE18042.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (IFIN0117 + IFUV0002 + IFE18042 + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + "(IFIN0117 + IFUV0002 + IFE18042)"; } if (document.codeform.lim_wp[2].checked) { document.getElementById('lim_wp3').className="selectionChecked"; var lim = "UB"; var limpic="UB"; var limDescrip = "[UB] Efector DC (non-contact)"; var limPrice = IFIN5327.price + IFUV0002.price + IFEVC002.price + LABUNIT.price; var limWeight = IFIN5327.weight + IFUV0002.weight + IFEVC002.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (IFIN5327 + IFUV0002 + IFEVC002 + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + "(IFIN5327 + IFUV0002 + IFEVC002)"; } } if (document.codeform.limit[2].checked) { // ===================================================== Explosion Proof Limit Switches ============================== if (document.codeform.lim_xp[0].checked) { document.getElementById('lim_xp1').className="selectionChecked"; var lim = "YO"; var limpic="YW4"; var limDescrip = "[YO] Poximity Sensor [Class I, Div II]"; var limPrice = STQN2SC02SRA.price + ST960101.price + LABUNIT.price; var limWeight = STQN2SC02SRA.weight + ST960101.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (STQN2SC02SRA + ST960101 + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (STQN2SC02SRA + ST960101)"; } if (document.codeform.lim_xp[1].checked) { document.getElementById('lim_xp2').className="selectionChecked"; var lim = "YH"; var limpic="YW7"; var limDescrip = "[YH] Proximity Sensor [Class I, Div II]"; var limPrice = STQX2SE02SRA.price + ST960101.price + LABUNIT.price; var limWeight = STQX2SE02SRA.weight + ST960101.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (STQX2SE02SRA + ST960101 + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (STQX2SE02SRA + ST960101)"; } if (document.codeform.lim_xp[2].checked) { document.getElementById('lim_xp3').className="selectionChecked"; var lim = "YE"; var limpic="YW7"; var limDescrip = "[YE] Mechanical [Class I, Div I] "; var limPrice = STQX2VE02SRA.price + ST960101.price + LABUNIT.price; var limWeight = STQX2VE02SRA.weight + ST960101.weight; var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (STQX2VE02SRA + ST960101 + 1 LABUNIT)"; var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (STQX2VE02SRA + ST960101)"; } } if ((document.codeform.limit[2].checked && document.codeform.solenoid[1].checked) || (document.codeform.limit[1].checked && document.codeform.solenoid[2].checked)) { // alert('oops'); var alertNote = "Warning: This assembly contains both explosion proof and non explosion proof electrical components; therefore the assembly is NOT EXPLOSION PROOF"; } } // ===================================================== Solenoids ============================================================= // ===================================================== WeatherProof Solenoid =============================================== if (document.codeform.solenoid[1].checked) { var solRatingDescrip = "Weatherproof (NEMA 4/4x)"; /*---------------- DISABLED BECAUSE IT HAS TO BE C ----------- REMOVE WHEN DONE ----------------------- if (document.codeform.sol_type[0].checked) { document.getElementById('sol_type1').className="selectionChecked"; var solType = "E"; var solTypeDescrip = "3-way/2-position, with "; } if (document.codeform.sol_type[1].checked) { document.getElementById('sol_type2').className="selectionChecked"; var solType = "C"; var solTypeDescrip = "4-way/2-position, with "; } //----------------------------------------------------------------------------------------------- */ var solType = "C"; var solTypeDescrip = "3/4-way, 2-position, with "; if (document.codeform.sol_wp[0].checked) { document.getElementById('sol_wp1').className="selectionChecked"; var solCon = "3"; var solpic = "3"; var solConDescrip = "DIN cord grip cable gland (PG9) connector"; } if (document.codeform.sol_wp[1].checked) { document.getElementById('sol_wp2').className="selectionChecked"; var solCon = "4"; var solpic = "3"; var solConDescrip = "plastic DIN 1/2 inch conduit connector"; } if (document.codeform.sol_wp[2].checked) { document.getElementById('sol_wp3').className="selectionChecked"; var solCon = "5"; var solpic = "3"; var solConDescrip = "DIN cord set connector with 6 foot cable"; } if (document.codeform.sol_wp[3].checked) { document.getElementById('sol_wp4').className="selectionChecked"; var solCon = "6"; var solpic = "3"; var solConDescrip = "DIN cord set connector with 15 foot cable"; } if (document.codeform.sol_wp[4].checked) { document.getElementById('sol_wp5').className="selectionChecked"; var solCon = "1"; var solpic = "2"; var solConDescrip = "potted DIN 1/2 inch conduit connector"; } } // ===================================================== Explosion Proof Solenoid =============================================== if (document.codeform.solenoid[2].checked) { var solRatingDescrip = "Explosion Proof (UL & CSA Listed)"; if (document.codeform.sol_xp[0].checked) { document.getElementById('sol_xp1').className="selectionChecked"; var solCon = "2"; var solpic = "2"; var solConDescrip = "potted DIN 1/2 inch conduit connector"; } if (document.codeform.sol_xp[1].checked) { document.getElementById('sol_xp2').className="selectionChecked"; var solType = "A"; var solCon = "2"; var solpic = "A2"; var solConDescrip = "ASCO"; } } if (solCon != "") { // ===================================================== Solenoid Voltage =============================================== if (document.codeform.sol_volt[0].checked) { document.getElementById('sol_volt1').className="selectionChecked"; var solVolt = "A"; var solVoltDescrip = "120VAC"; } if (document.codeform.sol_volt[1].checked) { document.getElementById('sol_volt2').className="selectionChecked"; var solVolt = "C"; var solVoltDescrip = "220VAC"; } if (document.codeform.sol_volt[2].checked) { document.getElementById('sol_volt3').className="selectionChecked"; var solVolt = "E"; var solVoltDescrip = "24VAC"; } if (document.codeform.sol_volt[3].checked) { document.getElementById('sol_volt4').className="selectionChecked"; var solVolt = "B"; var solVoltDescrip = "24VDC"; } if (document.codeform.sol_volt[4].checked) { document.getElementById('sol_volt5').className="selectionChecked"; var solVolt = "F"; var solVoltDescrip = "12VDC"; } var sol = solType + solCon + solVolt; var solDescrip = solRatingDescrip + " " + solTypeDescrip +" "+ solConDescrip+", "+ solVoltDescrip; } // ======== end of on/off // ================================================================== MODULATING ======================================== if (document.codeform.func_onOff[1].checked) { document.getElementById('modSelection').className = "selectionChecked"; document.getElementById('onOff').style.display='none'; document.getElementById('modulating').style.display='block'; // document.getElementById('pos1').className = "selectionChecked"; if (document.codeform.pos[0].checked) { document.getElementById('pos1').className = "selectionChecked"; var pos = "P5"; var pospic="POSP5"; var posDescrip = "[P5] Pneumatic Positioner (3-15 psi)"; var posPrice = P5.price + LABUNIT.price + EUMBHV803020.price; var posWeight = P5.weight + EUMBHV803020.weight; var priceSum = priceSum + "
Positioner: "+ posPrice + " ("+pos+" + EUMBHV803020 + 1 LABUNIT)"; var weightSum = weightSum + "
Positioner: "+ posWeight + " (P5)"; } if (document.codeform.pos[1].checked) { document.getElementById('pos2').className = "selectionChecked"; var pos = "E5"; var pospic="POSP5"; var posDescrip = "[E5] Electro-Pneumatic Positioner (4-20 mA) NEMA 4"; var posPrice = EP5N.price + LABUNIT.price + EUMBHV803020.price; var posWeight = EP5N.weight + EUMBHV803020.weight; var priceSum = priceSum + "
Positioner: "+ posPrice + " (EP5N + EUMBHV803020 + 1 LABUNIT)"; var weightSum = weightSum + "
Positioner: "+ posWeight + " (E5)"; } if (document.codeform.pos[2].checked) { document.getElementById('pos3').className = "selectionChecked"; var pos = "E5XP"; var pospic="POSP5"; var posDescrip = "[E5XP] Electro-Pneumatic Positioner (4-20 mA) Explosion Proof"; var posPrice = PMEP5EX_HPNU_23K01_PV9DA_4Z.price + LABUNIT.price + EUMBHV803020.price; var posWeight = PMEP5EX_HPNU_23K01_PV9DA_4Z.weight + EUMBHV803020.weight; var priceSum = priceSum + "
Positioner: "+ posPrice + " (PMEP5XP-HPNU-23K01-PV9DA-4Z + EUMBHV803020 + 1 LABUNIT)"; var weightSum = weightSum + "
Positioner: "+ posWeight + " (PMEP5XP-HPNU-23K01-PV9DA-4Z)"; } if (document.codeform.pos[3].checked) { document.getElementById('pos4').className = "selectionChecked"; var pos = "E5IS"; var pospic="POSP5"; var posDescrip = "[E5IS] Electro-Pneumatic Positioner (4-20 mA) Intrinsically Safe"; var posPrice = PMEP5IS_HPNU_23K01_PV9DA_4Z.price + LABUNIT.price + EUMBHV803020.price; var posWeight = PMEP5IS_HPNU_23K01_PV9DA_4Z.weight + EUMBHV803020.weight; var priceSum = priceSum + "
Positioner: "+ posPrice + " (PMEP5IS-HPNU-23K01-PV9DA-4Z + EUMBHV803020 + 1 LABUNIT)"; var weightSum = weightSum + "
Positioner: "+ posWeight + " (PMEP5IS-HPNU-23K01-PV9DA-4Z)"; } } // ======== end of modulating var actModelNo = eval("SIZE_"+sizvar+"."+actn+".ACT"); var actModelNo = actModelNo.replace(/_/g, "-"); //var actModelNo = actModelNo.replace(/$/g, "."); var mountDescrip = ""; if (document.codeform.MO.checked) { var mountDescrip = "Manual Override: Declutchable worm gear with hand wheel"; var mo = "-MO"; var mopic = "MO"; } // =========================================================== SET MODEL CODE ============================================= //alert (seal); var mc=siz+valser+con+"-"+act+sol+lim+pos+"-FC4"+temp+qe+mo; if (document.codeform.solenoid[0].checked == 0 && document.codeform.func_onOff[0].checked == 1 && document.codeform.sol_xp[1].checked == 0) { // alert(solType); var solpic = solType+solpic; } var pic = serPic+actpic+solpic+limpic+pospic+mopic; var CADmc=siz+"26"+con+actcad; document.getElementById('PN').innerHTML =mc; document.codeform.id.value=mc; document.getElementById('MClinks').innerHTML =mc; document.getElementById('mainIMG').src = "/ESD/models/"+pic+".jpg"; document.codeform.imgsrc.value="/ESD/models/"+pic+".jpg"; //----------- SET DIM PAGE =-=------------------------- // alert(act); if (con == "NRX") { if (act == "M") { document.codeform.dimPage.value = 3; } if (act == "F8D" || act == "F6D") { document.codeform.dimPage.value = 4;} if (act == "F8SC" || act == "F8SO" || act == "F6SC" || act == "F6SO") { document.codeform.dimPage.value = 5; } if (act == "08D" || act == "06D") { document.codeform.dimPage.value = 6; } if (act == "08SC" || act == "08SO" || act == "06SC" || act == "06SO") { document.codeform.dimPage.value = 7; } if (act.substring(0,2) == "K4") { document.codeform.dimPage.value = 8; } if (act.substring(0,2) == "R4") { document.codeform.dimPage.value = 9; } if (act.substring(0,2) == "V4") { document.codeform.dimPage.value = 10; } if (act.substring(0,2) == "S4") { document.codeform.dimPage.value = 11; } if (act.substring(0,2) == "B7") { document.codeform.dimPage.value = "X"; } // ------------- X gets the oops - please call page ------------ document.codeform.dimPage.value = "X"; // ------------- NONE AVAILABLE YET } document.codeform.CADmc.value=CADmc; // =========================================================== SET PRICING ============================================= var qty = document.codeform.qty.value; // VALVE =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var basePrice = eval(basePricer+".price"); var baseWeight = eval(basePricer+".weight"); // alert(basePrice); var priceSum = priceSum + "
Valve Price: "+basePrice+" ("+basePricer+")"; var weightSum = weightSum + "
Valve: "+baseWeight+" ("+basePricer+")"; // ACTUATOR =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var actName = eval("SIZE_"+sizvar+"."+actn+".ACT"); var actPrice = eval(actName+".price"); var actWeight = eval(actName+".weight"); var priceSum = priceSum + "
Actuator Price: "+actPrice+" ("+actName+")"; var weightSum = weightSum + "
Actuator: "+actWeight+" ("+actName+")"; // FIRECHEK =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var FC4name = "FC4NPT"+temp; var FC4Price = eval(FC4name+".price"); var FC4Weight = eval(FC4name+".weight"); var priceSum = priceSum + "
FireChek Price: "+FC4Price+" ("+FC4name+")"; var weightSum = weightSum + "
FireChek: "+FC4Weight+" ("+FC4name+")"; // Quick Exhast (actuators 600 and up) =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (actName == "ELFSA600_4" || actName == "ELFSA600_3" || actName == "ELFSA950_4" || actName == "ELFSA950_3" || actName == "ELESA1600_4" || actName == "ELESA1600_3" || actName == "ELPSA2500_14" || actName == "ELPSA4000_14") { // alert('Quick Exhaust because actuator is: '+actName); QEPrice = VEQESAB.price; QEWeight = VEQESAB.weight; QEName = "ELVA410.00.100"; var priceSum = priceSum + "
Quick Exhaust: "+ QEPrice + " (VEQESAB)"; var weightSum = weightSum + "
Quick Exhaust: "+ QEWeight + " (VEQESAB)"; } // SOLENOID =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (sol != "") { if (solType == "A") { // -------------- ASCO SOLENOID ----------------------------------- // alert('ASCO'); solPrice = eval("ASEF8320G174A.price")+LABUNIT.price; solWeight = eval("ASEF8320G174A.weight"); var priceSum = priceSum + "
Solenoid Price: "+solPrice+" (ASEF8320G174...)"; var weightSum = weightSum + "
Solenoid: "+actWeight+" (ASEF8320G174...)"; } else { // -------------- NAMUR SOLENOID ----------------------------------- // alert('NAMUR'); if (solCon == "1" || solCon == "2") { solPrice = eval(sol+".price")+LABUNIT.price; solWeight = eval(sol+".weight"); var priceSum = priceSum + "
Solenoid Price: "+solPrice+" ("+sol+")"; var weightSum = weightSum + "
Solenoid: "+solWeight+" ("+sol+")"; } else { solBase = solType + solVolt; if (solCon == "3") { var solConID = "VEP_1005_70_HC"; } if (solCon == "4") { var solConID = "VEP_1005_70_HCC"; } if (solCon == "5") { var solConID = "CA5J560_000_US0G"; } if (solCon == "6") { var solConID = "CA5J5F0_000_US0G"; } solPrice = eval(solBase+".price") + eval(solConID+".price")+LABUNIT.price; solWeight = eval(solBase+".weight") + eval(solConID+".weight"); var priceSum = priceSum + "
Solenoid Price: "+solPrice+" ("+solBase+", "+solConID+")"; var weightSum = weightSum + "
Solenoid: "+solWeight+" ("+solBase+", "+solConID+")"; } } } // Manual Override =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (mo == "-MO") { var mopic="MO"; if (actName == "ELFSA25_4" || actName == "ELFSA25_3" || actName == "ELFSA40_4" || actName == "ELFSA40_3" || actName == "ELFSA65_4" || actName == "ELFSA65_3") { moPrice = eval("ELVA410$00$100.price"); moWeight = eval("ELVA410$00$100.weight"); moName = "ELVA410.00.100"; } if (actName == "ELFSA100_4" || actName == "ELFSA100_3" || actName == "ELFSA150_4" || actName == "ELFSA150_3" || actName == "ELFSA200_4" || actName == "ELFSA200_3") { moPrice = eval("ELVA411$00$100.price"); moWeight = eval("ELVA411$00$100.weight"); moName = "ELVA411.00.100"; } if (actName == "ELFSA350_4" || actName == "ELFSA350_3" || actName == "ELFSA600_4" || actName == "ELFSA600_3" || actName == "ELFSA950_4" || actName == "ELFSA950_3") { moPrice = eval("ELVA412$00$100.price"); moWeight = eval("ELVA412$00$100.weight"); moName = "ELVA412.00.100"; } if (actName == "ELFSA1600_5" || actName == "ELFSA1600_4" || actName == "ELFSA1600_3" || actName == "ELFSA2500_5" || actName == "ELFSA2500_4" || actName == "ELFSA2500_3") { moPrice = eval("ELVA413$00$100.price"); moWeight = eval("ELVA413$00$100.weight"); moName = "ELVA413.00.100"; } if (actName == "ELFSA4000_3" || actName == "ELFSA4000_4" || actName == "ELFSA4000_5") { moPrice = eval("ELVA414$00$100.price"); moWeight = eval("ELVA414$00$100.weight"); moName = "ELVA414.00.100"; } var priceSum = priceSum + "
Manual Override Price: "+moPrice+" ("+moName+")"; var weightSum = weightSum + "
Manual Override: "+moWeight+" ("+moName+")"; //============================= 3-stage Adapters ================================== if (actName == "ELFSA25_4" || actName == "ELFSA25_3") { adapt3stagePrice = eval("ELVA3BA_2535.price"); adapt3stageWeight = eval("ELVA3BA_2535.weight"); adapt3stageName = "ELVA3BA-25/35"; } if (actName == "ELFSA40_4" || actName == "ELFSA40_3" || actName == "ELFSA65_4" || actName == "ELFSA65_3") { adapt3stagePrice = eval("ELVA3BA_4060.price"); adapt3stageWeight = eval("ELVA3BA_4060.weight"); adapt3stageName = "ELVA3BA-40/60"; } if (actName == "ELFSA100_4" || actName == "ELFSA100_3") { adapt3stagePrice = eval("ELVA3BA_100150.price"); adapt3stageWeight = eval("ELVA3BA_100150.weight"); adapt3stageName = "ELVA3BA-100/150"; } if (actName == "ELFSA150_4" || actName == "ELFSA150_3" || actName == "ELFSA200_4" || actName == "ELFSA200_3") { adapt3stagePrice = eval("ELVA3BA_200280.price"); adapt3stageWeight = eval("ELVA3BA_200280.weight"); adapt3stageName = "ELVA3BA-200/280"; } if (actName == "ELFSA350_4" || actName == "ELFSA350_3" || actName == "ELFSA600_4" || actName == "ELFSA600_3") { adapt3stagePrice = eval("ELVA3BA_500750.price"); adapt3stageWeight = eval("ELVA3BA_500750.weight"); adapt3stageName = "ELVA3BA-500/750"; } if (actName == "ELFSA950_4" || actName == "ELFSA950_3") { adapt3stagePrice = eval("ELVA3BA_1100.price"); adapt3stageWeight = eval("ELVA3BA_1100.weight"); adapt3stageName = "ELVA3BA-1100"; } if (actName == "ELFSA1600_5" || actName == "ELFSA1600_4" || actName == "ELFSA1600_3" || actName == "ELFSA2500_5" || actName == "ELFSA2500_4" || actName == "ELFSA2500_3") { adapt3stagePrice = eval("ELVA3BA_2500.price"); adapt3stageWeight = eval("ELVA3BA_2500.weight"); adapt3stageName = "ELVA3BA-2500"; } if (actName == "ELFSA4000_3" || actName == "ELFSA4000_4" || actName == "ELFSA4000_5") { adapt3stagePrice = eval("ELVA3BA_4000.price"); adapt3stageWeight = eval("ELVA3BA_4000.weight"); adapt3stageName = "ELVA3BA-4000"; } var priceSum = priceSum + "
3-stage Adapter: "+adapt3stagePrice+" ("+adapt3stageName+")"; var weightSum = weightSum + "
3-stage Adapter: "+adapt3stageWeight+" ("+adapt3stageName+")"; //============================= Hand Wheels ================================== if (actName == "ELFSA25_4" || actName == "ELFSA25_3" || actName == "ELFSA40_4" || actName == "ELFSA40_3" || actName == "ELFSA65_4" || actName == "ELFSA65_3") { hwPrice = eval("ELVA905$01$101.price"); hwWeight = eval("ELVA905$01$101.weight"); hwName = "ELVA905.01.101"; } if (actName == "ELFSA100_4" || actName == "ELFSA100_3") { hwPrice = eval("ELVA905$01$201.price"); hwWeight = eval("ELVA905$01$201.weight"); hwName = "ELVA905.01.201"; } if (actName == "ELFSA150_4" || actName == "ELFSA150_3" || actName == "ELFSA200_4" || actName == "ELFSA200_3" || actName == "ELFSA350_4" || actName == "ELFSA350_3") { hwPrice = eval("ELVA905$01$300.price"); hwWeight = eval("ELVA905$01$300.weight"); hwName = "ELVA905.01.300"; } if (actName == "ELFSA600_4" || actName == "ELFSA600_3" || actName == "ELFSA950_4" || actName == "ELFSA950_3") { hwPrice = eval("ELVA905$01$400.price"); hwWeight = eval("ELVA905$01$400.weight"); hwName = "ELVA905.01.400"; } if (actName == "ELFSA1600_5" || actName == "ELFSA1600_4" || actName == "ELFSA1600_3" || actName == "ELFSA2500_5" || actName == "ELFSA2500_4" || actName == "ELFSA2500_3") { hwPrice = eval("ELVA905$01$451.price"); hwWeight = eval("ELVA905$01$451.weight"); hwName = "ELVA905.01.451"; } if (actName == "ELFSA4000_3" || actName == "ELFSA4000_4" || actName == "ELFSA4000_5") { hwPrice = eval("ELVA905$01$601.price"); hwWeight = eval("ELVA905$01$601.weight"); hwName = "ELVA905.01.601"; } var priceSum = priceSum + "
Hand Wheel: "+hwPrice+" ("+hwName+")"; var weightSum = weightSum + "
Hand Wheel: "+hwWeight+" ("+hwName+")"; } // LIMIT SWITCH =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // (taken care of above when determining Limit Switch) // Positioner =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // (taken care of above when determining Limit Switch) // MOUNTING KIT =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var mountString = eval("SIZE_"+sizvar+"."+actn+".MOUNT"); var mountArray = mountString.split(","); var mountPrice = 0; var mountWeight = 0; if (mountString != "") { for (i = 0; i < mountArray.length; i++) { var partPrice = eval(mountArray[i]+".price"); var partWeight = eval(mountArray[i]+".weight"); var priceSum = priceSum + "
Mounting Kit Part: "+partPrice+" ("+mountArray[i]+")"; var mountPrice = mountPrice + partPrice; var weightSum = weightSum + "
Mounting Kit Part: "+partWeight+" ("+mountArray[i]+")"; var mountWeight = mountWeight + partWeight; } } // LABOR =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if (siz == "A" || siz == "B" || siz == "C" || siz == "D" || siz == "E" || siz == "F" || siz == "G" || siz == "H") { var mountLab = 1.5; } if (siz == "J" || siz == "K" || siz == "M" || siz == "N") { var mountLab = 2; } if (mo == "-MO") { var mountLab = mountLab + 4; } var priceSum = priceSum + "
Mounting Labor: "+(mountLab * LABUNIT.price)+" ("+mountLab+" LABUNITS)"; //alert(priceSum); var mountPrice= mountPrice + mountLab * LABUNIT.price; var fullPrice = Math.ceil(basePrice + actPrice + FC4Price + mountPrice + solPrice + limPrice + posPrice + moPrice + hwPrice + adapt3stagePrice); var fullWeight = Math.ceil(baseWeight + actWeight + FC4Weight + mountWeight + solWeight + limWeight + posWeight + adapt3stageWeight); document.getElementById('price').innerHTML = fullPrice; document.codeform.price.value=fullPrice; document.codeform.weight.value=fullWeight; document.getElementById('priceSummary').innerHTML = priceSum; document.getElementById('weightSummary').innerHTML = weightSum+"
TOTAL: "+fullWeight+" lbs."; var totalPrice = (fullPrice + accessoryPrice) * qty; document.getElementById('totalPrice').innerHTML = totalPrice; // =========================================================== SET SUMMARIES & DESCRIPTION ============================================= // ======================================================== SET step 2 summary ================================================== //alert("SIZE_"+sizvar+"."+actn+".ACT"); var actDescrip = "Actuator: "+actDescrip+" ("+actModelNo+")
"; if (solPrice != 0){ var solDescrip = "NAMUR Solenoid: "+solDescrip+"
"; } if (limPrice != 0){ var limDescrip = "Limit Switch: "+limDescrip+"
"; } if (posPrice != 0){ var posDescrip = "Positioner: "+posDescrip+"
"; } if (QEPrice != 0){ var qeDescrip = "Quick Exhaust Valve: 1/4" x 3/8" SS quick exhaust"; } var FCdescrip = "FireChek: "+temp+"°F
"; var step2summary = actDescrip + FCdescrip + solDescrip + limDescrip + posDescrip + qeDescrip; document.getElementById('step2summary').innerHTML = step2summary; // ======================================================== SET step 3 summary ================================================== var step3summary = mountDescrip; document.getElementById('step3summary').innerHTML = step3summary; var fullSummary = step1summary + "
" + step2summary + "
" + step3summary; if (alertNote != "") { //alert('oooooops'); var fullSummary = fullSummary + "
" + alertNote; } document.getElementById('fullSummary').innerHTML = fullSummary; document.codeform.info.value=fullSummary; if (accessoryPrice != 0) { document.getElementById('accessoryPriceText').style.display="block"; document.getElementById('accessoryPrice').innerHTML=accessoryPrice; document.getElementById('accessorySummary').innerHTML=accessoryDescrip; } else { document.getElementById('accessoryPriceText').style.display="none"; } } // ========================================================== END OF MAIN changecode FUNCTION ============================================================ // ============================================================= OTHER FUNCTIONS ========================================================= function addToCart() { document.codeform.submit(); // alert ('not quite yet... need to add in pricing'); } function showHideAccess(item) { if (document.getElementById(item+"BOX").style.display == "none") { document.getElementById(item+"BOX").style.display = "block"; document.getElementById(item+"HEAD").className = "accessHeadOpen"; document.getElementById(item).checked = 1; } else { document.getElementById(item+"BOX").style.display = "none"; document.getElementById(item+"HEAD").className = "accessHead"; document.getElementById(item).checked = 0; } } function resetSizeDivs() { document.getElementById('Fsize1').className="selection"; document.getElementById('Fsize2').className="selection"; document.getElementById('Fsize3').className="selection"; document.getElementById('Fsize4').className="selection"; document.getElementById('Fsize5').className="selection"; document.getElementById('Fsize6').className="selection"; document.getElementById('Fsize7').className="selection"; document.getElementById('Fsize8').className="selection"; document.getElementById('Fsize9').className="selection"; document.getElementById('Fsize10').className="selection"; document.getElementById('Fsize11').className="selection"; document.getElementById('Fsize12').className="selection"; document.getElementById('Fsize13').className="selection"; document.getElementById('Fsize14').className="selection"; document.getElementById('Fsize15').className="selection"; document.getElementById('Fsize16').className="selection"; document.getElementById('Fsize17').className="selection"; document.getElementById('Fsize18').className="selection"; document.getElementById('Hsize1').className="selection"; document.getElementById('Hsize2').className="selection"; document.getElementById('Hsize3').className="selection"; document.getElementById('Hsize4').className="selection"; document.getElementById('Hsize5').className="selection"; document.getElementById('Hsize6').className="selection"; document.getElementById('Hsize7').className="selection"; document.getElementById('Hsize8').className="selection"; document.getElementById('Hsize9').className="selection"; document.getElementById('Hsize10').className="selection"; document.getElementById('Hsize11').className="selection"; document.getElementById('Hsize12').className="selection"; document.getElementById('Hsize13').className="selection"; document.getElementById('Hsize14').className="selection"; document.getElementById('Fmat1').className="selection"; document.getElementById('Fmat2').className="selection"; document.getElementById('Fseat1').className="selection"; document.getElementById('Fseat2').className="selection"; document.getElementById('Fseal1').className="selection"; document.getElementById('Fseal2').className="selection"; document.getElementById('temp1').className="selection"; document.getElementById('temp2').className="selection"; document.getElementById('temp3').className="selection"; } function resetAirActDivs() { document.getElementById('act_p1').className="selection"; document.getElementById('act_p2').className="selection"; document.getElementById('act_p3').className="selection"; document.getElementById('act_p4').className="selection"; } function resetSolDivs() { document.getElementById('sol_wp1').className="selection"; document.getElementById('sol_wp2').className="selection"; document.getElementById('sol_wp3').className="selection"; document.getElementById('sol_wp4').className="selection"; document.getElementById('sol_wp5').className="selection"; document.getElementById('sol_xp1').className="selection"; document.getElementById('sol_xp2').className="selection"; document.getElementById('sol_type1').className="selection"; document.getElementById('sol_type2').className="selection"; document.getElementById('sol_volt1').className="selection"; document.getElementById('sol_volt2').className="selection"; document.getElementById('sol_volt3').className="selection"; document.getElementById('sol_volt4').className="selection"; document.getElementById('sol_volt5').className="selection"; } function resetLimDivs() { document.getElementById('lim_wp1').className="selection"; document.getElementById('lim_wp2').className="selection"; document.getElementById('lim_wp3').className="selection"; document.getElementById('lim_xp1').className="selection"; document.getElementById('lim_xp2').className="selection"; document.getElementById('lim_xp3').className="selection"; } function resetPosDivs() { document.getElementById('pos1').className="selection"; document.getElementById('pos2').className="selection"; document.getElementById('pos3').className="selection"; document.getElementById('pos4').className="selection"; } function resetFuncDivs() { document.getElementById('onOffSelection').className="selection"; document.getElementById('modSelection').className="selection"; } function selectSolType(type) { document.getElementById('noSol').className="tab"; document.getElementById('wpSol').className="tab"; document.getElementById('xpSol').className="tab"; document.getElementById(type).className="tabSelected"; document.getElementById('noSolSection').style.display="none"; document.getElementById('wpSolSection').style.display="none"; document.getElementById('xpSolSection').style.display="none"; document.getElementById(type+'Section').style.display="block"; if (type != "noSol") { document.getElementById('solVoltage').style.display="block"; } else { document.getElementById('solVoltage').style.display="none"; } } function selectLimType(type) { document.getElementById('noLim').className="tab"; document.getElementById('wpLim').className="tab"; document.getElementById('xpLim').className="tab"; document.getElementById(type).className="tabSelected"; document.getElementById('noLimSection').style.display="none"; document.getElementById('wpLimSection').style.display="none"; document.getElementById('xpLimSection').style.display="none"; document.getElementById(type+'Section').style.display="block"; } function closeStep(step) { document.getElementById('step'+step+'close').style.display="none"; document.getElementById('step'+step+'edit').style.display="block"; document.getElementById('step'+step+'section').style.display="none"; document.getElementById('step'+step+'summary').style.display="block"; } function editStep(step) { document.getElementById('step'+step+'close').style.display="block"; document.getElementById('step'+step+'edit').style.display="none"; document.getElementById('step'+step+'section').style.display="block"; document.getElementById('step'+step+'summary').style.display="none"; } function showInfo(what) { if (document.getElementById(what).style.display != "none") { document.getElementById(what).style.display = "none"; document.getElementById("specsBut").className = "infoTab"; document.getElementById("descripBut").className = "infoTab"; } else { if (what == "description") { document.getElementById("specs").style.display = "none"; document.getElementById("description").style.display = "block"; document.getElementById("descripBut").className = "infoTabSelected"; document.getElementById("specsBut").className = "infoTab"; } else { document.getElementById("specs").style.display = "block"; document.getElementById("description").style.display = "none"; document.getElementById("specsBut").className = "infoTabSelected"; document.getElementById("descripBut").className = "infoTab"; } } }