function selectModel(pn) {
var con = pn.substr(3, 3);
//alert('con: '+con );
if (con == "ISO") {
document.codeform.connection[1].checked = 1;
}
//----------------------------------- SELECT TEMP ----------------------------
var temp = pn.substr(6, 3);
if (temp == "135") {
document.codeform.temp[2].checked = 1;
}
if (temp == "150") {
document.codeform.temp[1].checked = 1;
}
if (temp == "165") {
document.codeform.temp[0].checked = 1;
}
var pilot = pn.substr(9);
if (pilot != "") {
if (pilot == "QSA") { //============================== Quick Exhaust
document.codeform.series[1].checked = 1;
document.codeform.exhaust[0].checked = 1;
}
if (pilot == "QSC") {
document.codeform.series[1].checked = 1;
document.codeform.exhaust[1].checked = 1;
}
if (pilot != "QSA" && pilot != "QSC") { //============== PILOT VALVE
var type = pn.substr(-1);
if (type == "P") { //====================== AIR PILOT VALVE
document.codeform.series[2].checked = 1;
var size = pilot.substr(3,1);
if (size == "A") {
document.codeform.AIRsize[0].checked = 1;
}
if (size == "B") {
document.codeform.AIRsize[1].checked = 1;
}
if (size == "C") {
document.codeform.AIRsize[2].checked = 1;
}
if (size == "E") {
document.codeform.AIRsize[3].checked = 1;
}
var mount = pilot.substr(4,1);
if (mount == "P") {
document.codeform.connections[0].checked = 1;
}
if (mount == "C") {
document.codeform.connections[1].checked = 1;
}
} else { //====================== SOLENOID PILOT VALVE
document.codeform.series[3].checked = 1;
var size = pilot.substr(3,1);
if (size == "A") {
document.codeform.SOLsize[0].checked = 1;
}
if (size == "B") {
document.codeform.SOLsize[1].checked = 1;
}
if (size == "C") {
document.codeform.SOLsize[2].checked = 1;
}
if (size == "E") {
document.codeform.SOLsize[3].checked = 1;
}
var mount = pilot.substr(4,1);
if (mount == "N") {
document.codeform.mount[0].checked = 1;
}
if (mount == "P") {
document.codeform.mount[1].checked = 1;
}
if (type == "A") {
document.codeform.voltage[0].checked = 1;
}
if (type == "B") {
document.codeform.voltage[1].checked = 1;
}
if (type == "C") {
document.codeform.voltage[2].checked = 1;
}
if (type == "F") {
document.codeform.voltage[3].checked = 1;
}
}
}
}
//----------------------------------- SELECT SIZE ----------------------------
changeCode();
}
function changeCode() {
//--------------------CLEAR VARIABLES
var ser = "";
var CADmc = "";
var con ="";
var temp ="";
var pilot ="";
var material ="";
var func ="";
var siz ="";
var mount ="";
var power ="";
var voltage ="";
var exhaust = "";
var con_descrip ="";
var temp_descrip ="";
var pilot_descrip ="";
var material_descrip ="";
var func_descrip ="";
var siz_descrip ="";
var mount_descrip ="";
var power_descrip ="";
var voltage_descrip ="";
var exhaust_descrip = "";
var price=0;
var weight=0;
var BOM=0;
var firechekPrice = FC4NPT165.price;
var pilotPrice = 0;
var fittingsPrice = 0;
var tubingPrice = 0;
var laborPrice = 0;
var platePrice = 0;
// document.getElementById('NAMURmount').style.color="#000000";
// document.codeform.mount[0].disabled = 0;
// ------------------- RESET ALL selection boxes ---------------------
document.getElementById('NPTcon').className = "selection";
// document.getElementById('ISOcon').className = "selection";
document.getElementById('QSA').className = "selection";
document.getElementById('QSC').className = "selection";
document.getElementById('sizeA').className = "selection";
document.getElementById('sizeB').className = "selection";
document.getElementById('sizeC').className = "selection";
document.getElementById('sizeE').className = "selection";
document.getElementById('NAMURmount').className = "selection";
document.getElementById('INLINEmount').className = "selection";
document.getElementById('SOLvoltA').className = "selection";
document.getElementById('SOLvoltB').className = "selection";
document.getElementById('SOLvoltC').className = "selection";
document.getElementById('SOLvoltF').className = "selection";
document.getElementById('sizeA2').className = "selection";
document.getElementById('sizeB2').className = "selection";
document.getElementById('sizeC2').className = "selection";
document.getElementById('sizeE2').className = "selection";
document.getElementById('NAMURmount2').className = "selection";
document.getElementById('INLINEmount2').className = "selection";
document.getElementById('T165').className = "selection";
// document.getElementById('T150').className = "selection";
// document.getElementById('T135').className = "selection";
document.getElementById('series1').className = "selection";
document.getElementById('series2').className = "selection";
document.getElementById('series3').className = "selection";
document.getElementById('series4').className = "selection";
//----------------------------HIDE ALL SERIES -----------------------------
document.getElementById('priceInfo').innerHTML = "";
document.getElementById('FireChek').style.display="none";
document.getElementById('FireChekQE').style.display="none";
document.getElementById('FireChekPLUSSOL').style.display = "none";
document.getElementById('FireChekPLUSAIR').style.display = "none";
document.getElementById('selectSeries').style.display="";
document.getElementById('sizeA').style.display = "";
document.getElementById('sizeB').style.display = "";
document.getElementById('sizeC').style.display = "";
document.getElementById('sizeE').style.display = "";
document.getElementById('sizeA_Cv').innerHTML = "1.5";
//----------------------------FADE ALL IMAGES-----------------------------
/* document.getElementById('FireChekIMG').src = "FireChek-faded.jpg";
document.getElementById('FireChekQEIMG').src = "FireChekQuickExhaust-faded.jpg";
document.getElementById('FireChekPLUSsolIMG').src = "FireChekPLUS-faded.jpg";
document.getElementById('FireChekPLUSairIMG').src = "FireChekPLUS-inline-compression-faded.jpg";
*/
document.getElementById('ISOcon').style.color="#CCC";
// ==================================== RESET ALL DISABLED =============================================
document.getElementById('NAMURmount').className = "selection";
document.codeform.SOLsize[0].disabled = 0;
// ----------------------------------------------------------------------------------------------------- FireChek
if (document.codeform.series[0].checked) {
document.getElementById('step1summary').innerHTML = "Type: FireChek® Thermal Shut-Off Valve";
document.getElementById('series1').className = "selectionChecked";
// ------------------------------------- make series tables visible ------------
document.getElementById('FireChek').style.display="";
document.getElementById('selectSeries').style.display="none";
var ser_descrip = "FireChek Heat Activated Pneumatic Shut-Off Valve";
// document.getElementById('FireChekIMG').src = "FireChek.jpg";
// document.getElementById('ISOcon').style.color="#000";
// ------------------------------------- set constants for entire series ------------
var CADmc = "A26NRXM";
var PICmc = "FC4";
var firechekPrice = FC4NPT165.price;
// var firechekPrice = 250;
var weight = FC4NPT165.weight;
var BOM = "FC4NPT165";
document.getElementById('ISOcon').style.display="";
document.getElementById('FCconn').style.display="";
// document.getElementById('FCconn2').style.display="";
} else {
document.codeform.connection[0].checked = 1;
document.getElementById('FireChek').style.display="none";
};
// ----------------------------------------------------------------------------------------------------- FireChek with Quick Exhaust
if (document.codeform.series[1].checked) {
document.getElementById('step1summary').innerHTML = "Type: FireChek® Thermal Shut-Off Valve with Quick Exhaust";
document.getElementById('series2').className = "selectionChecked";
// ------------------------------------- make series tables visible ------------
document.getElementById('FireChekQE').style.display="";
document.getElementById('selectSeries').style.display="none";
var ser_descrip = "FireChek Heat Activated Pneumatic Shut-Off Valve with Quick Exhaust";
// document.getElementById('FireChekQEIMG').src = "FireChekQuickExhaust.jpg";
// ------------------------------------- set constants for entire series ------------
document.codeform.connection[0].checked=true;
document.codeform.connection[1].disabled=true;
if (document.codeform.exhaust[0].checked) {
var exhaust = "QSA"; var exhaust_descrip = "3/8 inch NPT female (exhaust Cv 3.3)";
document.getElementById('QSA').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price
var pilotPrice = VEQESAB.price;
var fittingsPrice = MC4548K131.price;
var weight = FC4NPT165.weight + VEQESAB.weight;
var BOM = "FC4NPT165
VEQESAB
MC4548K131";
}
if (document.codeform.exhaust[1].checked) {
var exhaust = "QSC"; var exhaust_descrip = "3/4 inch NPT female (exhaust Cv 8.8)";
document.getElementById('QSC').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price
var pilotPrice = VEQESCD.price;
var fittingsPrice = MC4548K131.price + MC4452K165.price;
var weight = FC4NPT165.weight + VEQESCD.weight;
var BOM = "FC4NPT165
VEQESCD
MC4452K165
MC4548K131";
}
var CADmc = "B26NRXM";
var PICmc = "FC4-QSA";
};
// ----------------------------------------------------------------------------------------------------- FireChek PLUS Air
if (document.codeform.series[2].checked) {
document.getElementById('step1summary').innerHTML = "Type: High Flow Pilot Valve with FireChek® Thermal Shut-Off Valve";
document.getElementById('series3').className = "selectionChecked";
// ------------------------------------- make applicable tables visible ------------
// document.getElementById('FireChekPLUSairIMG').src = "FireChekPLUS-inline-compression.jpg";
document.getElementById('FireChekPLUSAIR').style.display="";
document.getElementById('selectSeries').style.display="none";
var ser_descrip = "FireChek with High Flow Pilot Valve";
// ------------------------------------- set constants for entire series ------------
var ser_name = "FireChek PLUS";
var ser_descrip = "FireChek with High Flow Air Pilot Valve"
var pilot = "P";
var material = "S";
var func = "3";
var power = "P";
if (document.codeform.AIRsize[0].checked) { var siz = "A"; var siz_descrip="1/4 inch NPT Female"; // ============================== 1/4 PORTED AIR
document.getElementById('sizeA2').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3APPP.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + (2 * MC4548K131.price) + MC4452K432.price;
var tubingPrice = MC89895K724_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var BOM = "FC4NPT165
VEPS3APPP
MC8239K36
MC8239K75
(2x) MC4548K131
MC4452K432
MC89895K724_CUT_6IN
(2x) LABUNIT";
if (document.codeform.connections[1].checked) {
var fittingsPrice = fittingsPrice + (2 * MC8239K15.price);
var BOM = BOM + "
(2x) MC8239K15 compression fittings" ;
}
}
if (document.codeform.AIRsize[1].checked) { var siz = "B"; var siz_descrip="3/8 inch NPT Female"; // ============================== 3/8 PORTED AIR
document.getElementById('sizeB2').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3BPPP.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC4452K163.price + MC4548K131.price + MC4548K381.price + MC4452K433.price;
var tubingPrice = MC89895K724_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var BOM = "FC4NPT165
VEPS3BPPP
MC8239K36
MC8239K75
MC4452K163
MC4548K131
MC4548K381
MC4452K433
MC89895K724_CUT_6IN
(2x) LABUNIT";
if (document.codeform.connections[1].checked) {
var fittingsPrice = fittingsPrice + (2 * MC8239K23.price);
var BOM = BOM + "
(2x) MC8239K23 compression fittings" ;
}
}
if (document.codeform.AIRsize[2].checked) { var siz = "C"; var siz_descrip="1/2 inch NPT Female"; // ============================== 1/2 PORTED AIR
document.getElementById('sizeC2').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3CPPP.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC4452K165.price + MC8239K55.price + MC4548K131.price + MC4548K171.price + MC4452K434.price;
var tubingPrice = MC89895K724_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var pilotWeight = VEPS3CPPP.weight;
var fittingsWeight = MC8239K36.weight + MC8239K75.weight + MC4452K165.weight + MC8239K55.weight + MC4548K131.weight + MC4548K171.weight + MC4452K434.weight;
var tubingWeight = MC89895K724_CUT_6IN.weight;
var BOM = "FC4NPT165
VEPS3CPPP
MC8239K36
MC8239K75
MC4452K165
MC4548K131
MC4548K171
MC4452K434
MC89895K724_CUT_6IN
(2x) LABUNIT";
if (document.codeform.connections[1].checked) {
var fittingsPrice = fittingsPrice + (2 * MC8239K26.price);
var BOM = BOM + "
(2x) MC8239K26 compression fittings" ;
}
}
if (document.codeform.AIRsize[3].checked) { var siz = "E"; var siz_descrip="1 inch NPT Female"; // ============================== 1 inch PORTED AIR
document.getElementById('sizeE2').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3EPPP.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC4452K173.price + MC4548K131.price + MC4548K221.price + MC4452K436.price;
var tubingPrice = MC89895K724_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var pilotWeight = VEPS3EPPP.weight;
var fittingsWeight = MC8239K36.weight + MC8239K75.weight + MC4452K173.weight + MC4548K131.weight + MC4548K221.weight + MC4452K436.weight;
var tubingWeight = MC89895K724_CUT_6IN.price;
var BOM = "FC4NPT165
VEPS3EPPP
MC8239K36
MC8239K75
MC4452K173
MC4548K131
MC4548K221
MC4452K436
MC89895K724_CUT_6IN
(2x) LABUNIT";
if (document.codeform.connections[1].checked) {
var fittingsPrice = fittingsPrice + (2 * MC52245K544.price);
var BOM = BOM + "
(2x) MC52245K544 compression fittings" ;
}
}
if (document.codeform.connections[0].checked) {
document.getElementById('NAMURmount2').className = "selectionChecked";
var mount = "P"; var mount_descrip = "Inline (NPT ported)";
var PICmc = "FC4-inline-ported";
} else {
document.getElementById('INLINEmount2').className = "selectionChecked";
var mount = "C"; var mount_descrip = "Inline (Compression Fittings)";
var PICmc = "FC4-inline-compression";
}
var weight = FC4NPT165.weight+pilotWeight+fittingsWeight+tubingWeight;
};
// ----------------------------------------------------------------------------------------------------- FireChek PLUS Sol
if (document.codeform.series[3].checked) {
document.getElementById('step1summary').innerHTML = "Type: Solenoid Operated High Flow Pilot Valve with FireChek® Thermal Shut-Off Valve";
document.getElementById('series4').className = "selectionChecked";
// document.getElementById('FireChekPLUSsolIMG').src = "FireChekPLUS.jpg";
if (document.codeform.SOLsize[0].checked == 0) {
if (document.codeform.mount[0].checked) {
document.codeform.mount[1].checked = 1;
}
document.getElementById('NAMURmount').className = "selectionDisabled";
document.codeform.mount[0].disabled = true;
}
// ------------------------------------- make applicable tables visible ------------
document.getElementById('FireChekPLUSSOL').style.display="";
document.getElementById('selectSeries').style.display="none";
// ------------------------------------- set constants for entire series ------------
var ser_name = "FireChek PLUS";
var ser_descrip = "FireChek with High Flow Solenoid Valve"
var pilot = "P";
var material = "S";
var func = "3";
var power = "E";
if (document.codeform.mount[0].checked) { // =============================================================================== NAMUR SOLENOID
document.getElementById('NAMURmount').className = "selectionChecked";
document.getElementById('sizeA').className = "selectionChecked";
var PICmc = "FireChekwSolNAMUR300";
var mount = "N"; var mount_descrip = "NAMUR Mount with FNPT Inlet";
var siz = "A"; var siz_descrip="1/4 inch NPT (female)";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3ANEA.price;
var fittingsPrice = MC8239K75.price + MC48805K86.price + MC8239K15.price + MC4548K131.price + MC4452K432.price;
var tubingPrice = MC89895K724_CUT_6IN.price;
var laborPrice = LABUNIT.price;
var pilotWeight = VEPS3ANEA.weight;
var fittingsWeight = MC8239K75.weight + MC48805K86.weight + MC8239K15.weight + MC4548K131.weight + MC4452K432.weight;
var tubingWeight = MC89895K724_CUT_6IN.weight;
var BOM = "FC4NPT165
VEPS3ANEA
MC8239K75
MC48805K86
MC8239K15
MC4548K131
MC4452K432
MC89895K724_CUT_6IN
(1x) LABUNIT";
} else {
var PICmc = "FireChekwSolPlate300";
document.getElementById('INLINEmount').className = "selectionChecked";
var mount = "P"; var mount_descrip = "Plate Mounted with FNPT Ports";
if (document.codeform.SOLsize[0].checked) { var siz = "A"; var siz_descrip="1/4 inch NPT (female)"; // ============================== 1/4 PORTED SOLENOID
document.getElementById('sizeA').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3APEA.price;
var fittingsPrice = MC8239K36.price + (MC8239K75.price * 2) + MC8239K15.price + (2*MC4548K131.price) + (2*MC4548K131.price);
var tubingPrice = MC89895K724_CUT_12IN.price;
var laborPrice = 2 * LABUNIT.price;
var platePrice = NAMURPLATESIZE1.price;
var pilotWeight = VEPS3APEA.weight;
var fittingsWeight = MC8239K36.weight + (MC8239K75.weight * 2) + MC8239K15.weight + (2*MC4548K131.weight) + (2*MC4548K131.weight);
var tubingWeight = MC89895K724_CUT_12IN.weight;
var plateWeight = NAMURPLATESIZE1.weight;
var BOM = "FC4NPT165
VEPS3APEA
MC8239K36
(2x) MC8239K75
MC8239K15
(2x) MC4548K131
(2x) MC4548K131
MC89895K724_CUT_12IN
(2x) LABUNIT
NAMURPLATESIZE1";
}
if (document.codeform.SOLsize[1].checked) { var siz = "B"; var siz_descrip="3/8 inch NPT (female)"; // ============================== 3/8 PORTED SOLENOID
document.getElementById('sizeB').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3BPEA.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC8239K82.price + MC8239K23.price + MC4548K381.price + MC4452K433.price + MC4452K163.price + MC4548K131.price ;
var tubingPrice = MC89895K724_CUT_6IN.price + MC89895K737_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var platePrice = NAMURPLATESIZE1.price;
var pilotWeight = VEPS3BPEA.weight;
var fittingsWeight = MC8239K36.weight + MC8239K75.weight + MC8239K82.weight + MC8239K23.weight + MC4548K381.weight + MC4452K433.weight + MC4452K163.weight + MC4548K131.weight ;
var tubingWeight = MC89895K724_CUT_6IN.weight + MC89895K737_CUT_6IN.weight;
var plateWeight = NAMURPLATESIZE1.weight;
var BOM = "FC4NPT165
VEPS3BPEA
MC8239K36
MC8239K75
MC8239K82
MC8239K23
MC4548K381
MC4452K433
MC4452K163
MC4548K131
MC89895K724_CUT_6IN
MC89895K737_CUT_6IN
(2x) LABUNIT
NAMURPLATESIZE1";
}
if (document.codeform.SOLsize[2].checked) { var siz = "C"; var siz_descrip="1/2 inch NPT (female)"; // ============================== 1/2 PORTED SOLENOID
document.getElementById('sizeC').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3CPEA.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC8239K82.price + MC8239K25.price + MC4452K434.price + MC4452K165.price + MC4548K131.price + MC4548K171.price;
var tubingPrice = MC89895K724_CUT_6IN.price + MC89895K737_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var platePrice = NAMURPLATESIZE2.price;
var pilotWeight = VEPS3CPEA.weight;
var fittingsWeight = MC8239K36.weight + MC8239K75.weight + MC8239K82.weight + MC8239K25.weight + MC4452K434.weight + MC4452K165.weight + MC4548K131.weight + MC4548K171.weight;
var tubingWeight = MC89895K724_CUT_6IN.weight + MC89895K737_CUT_6IN.weight;
var plateWeight = NAMURPLATESIZE2.weight;
var BOM = "FC4NPT165
VEPS3CPEA
MC8239K36
MC8239K75
MC8239K82
MC8239K25
MC4452K434
MC4452K165
MC4548K171
MC4548K171
MC89895K724_CUT_6IN
MC89895K737_CUT_6IN
(2x) LABUNIT
NAMURPLATESIZE2";
}
if (document.codeform.SOLsize[3].checked) { var siz = "E"; var siz_descrip="1 inch NPT (female)"; // ============================== 1 inch PORTED SOLENOID
document.getElementById('sizeE').className = "selectionChecked";
// var firechekPrice = FC4NPT165.price;
var pilotPrice = VEPS3EPEA.price;
var fittingsPrice = MC8239K36.price + MC8239K75.price + MC8239K77.price + MC8239K26.price + MC4548K221.price + MC4452K436.price + MC4452K175.price + MC4452K173.price + MC4548K131.price;
var tubingPrice = MC89895K724_CUT_6IN.price + MC89895K737_CUT_6IN.price;
var laborPrice = 2 * LABUNIT.price;
var platePrice = NAMURPLATESIZE3.price;
var pilotWeight = VEPS3EPEA.weight;
var fittingsWeight = MC8239K36.weight + MC8239K75.weight + MC8239K77.weight + MC8239K26.weight + MC4548K221.weight + MC4452K436.weight + MC4452K175.weight + MC4452K173.weight + MC4548K131.weight;
var tubingWeight = MC89895K724_CUT_6IN.weight + MC89895K737_CUT_6IN.weight;
var plateWeight = NAMURPLATESIZE3.weight;
var BOM = "FC4NPT165
VEPS3EPEA
MC8239K36
MC8239K75
MC8239K77
MC8239K26
MC4548K221
MC4452K436
MC4452K175
MC4452K173
MC4548K131
MC89895K724_CUT_6IN
MC89895K737_CUT_6IN
(2x) LABUNIT
NAMURPLATESIZE3";
}
}
if (document.codeform.voltage[0].checked) {
var voltage = "A"; var power_descrip = " 120vAC";
document.getElementById('SOLvoltA').className = "selectionChecked";
}
if (document.codeform.voltage[1].checked) {
var voltage = "B"; var power_descrip = " 24vDC";
document.getElementById('SOLvoltB').className = "selectionChecked";
}
if (document.codeform.voltage[2].checked) {
var voltage = "C"; var power_descrip = " 240vAC";
document.getElementById('SOLvoltC').className = "selectionChecked";
}
if (document.codeform.voltage[3].checked) {
var voltage = "F"; var power_descrip = " 12vDC";
document.getElementById('SOLvoltF').className = "selectionChecked";
}
var weight = FC4NPT165.weight+pilotWeight+fittingsWeight+tubingWeight+plateWeight;
};
//--------------------------------------------------------SET FORM VALUES--------------------------------------
document.codeform.prodseries.value = ser_descrip;
// ------------------------- MAKE MODEL CODE --------------------------------------
if (document.codeform.connection[0].checked) {
document.getElementById('NPTcon').className = "selectionChecked";
var con = "NPT"; var con_descrip = "1/4 inch NPT (female)";
}
if (document.codeform.connection[1].checked) {
document.getElementById('ISOcon').className = "selectionChecked";
var con = "ISO"; var con_descrip = "ISO G 1/4 inch (female)";
}
if (document.codeform.temp[0].checked) {
var temp = "165";
document.getElementById('T165').className = "selectionChecked";
}
if (document.codeform.temp[1].checked) {
var temp = "150";
document.getElementById('T150').className = "selectionChecked";
}
if (document.codeform.temp[2].checked) {
var temp = "135";
document.getElementById('T135').className = "selectionChecked";
}
if (document.codeform.series[0].checked || document.codeform.series[1].checked) {
var step2summary = "Connections: "+con_descrip+"
";
} else {
var step2summary = "Connections: "+siz_descrip+"
";
}
if (document.codeform.series[3].checked || document.codeform.series[2].checked) {
var step2summary = step2summary + "Mounting Style: "+mount_descrip+"
";
}
var step2summary = step2summary + "Actuation Temperature: "+temp+"°F
";
if (document.codeform.series[3].checked) {
var step2summary = step2summary + "Solenoid Voltage: "+power_descrip;
}
document.getElementById('step2summary').innerHTML = step2summary;
var mc = "FC4"+con+temp+pilot+material+func+siz+mount+power+voltage+exhaust;
document.codeform.imgsrc.value = "/firechek/models/"+PICmc+".jpg";
document.codeform.id.value = mc;
// document.codeform.modelcode.value = mc;
document.getElementById('PN').innerHTML = mc;
// ------------------------- MAKE DESCRIPTION --------------------------------------
var info = "";
if (document.codeform.series[0].checked) {
var info = info + "Connection: "+con_descrip+"
";
}
if (document.codeform.series[1].checked) {
var info = info + "Quick Exhaust: "+exhaust_descrip+"
";
}
if (document.codeform.series[2].checked) {
var info = info + "SIL III High Flow Pilot: stainless steel, 3-way, spring return
";
var info = info + "Mounting Style: "+mount_descrip+"
";
var info = info + "Port size: "+siz_descrip+"
";
}
if (document.codeform.series[3].checked) {
var info = info + "SIL III High Flow Pilot with Control Solenoid: stainless steel, 3-way, spring return
";
var info = info + "Pilot valve Solenoid: Class I Div I, Potted coil with 18 inch leads
";
var info = info + "Solenoid Voltage: "+power_descrip+"
";
var info = info + "Mounting Style: "+mount_descrip+"
";
var info = info + "Port size: "+siz_descrip+"
";
}
var info = info + "Actuation Temperature: "+temp+"°F
";
document.getElementById('fullSummary').innerHTML = '
'+info;
document.codeform.info.value=info;
// ------------------------- LOAD Image --------------------------------------
document.getElementById('mainIMG').src="models/"+PICmc+".jpg";
document.codeform.imgsrc.value="/firechek/models/"+PICmc+".jpg";
/*
if (CADmc != "") {
document.getElementById('CADmc').value = CADmc;
document.getElementById('CADframe').src = '/CAD/miniviewer.php?PN='+CADmc;
} else {
document.getElementById('CADframe').src = '/CAD/blank.php';
}
*/
// ------------------------- MAKE PRICE and WEIGHT --------------------------------------
var price = firechekPrice + pilotPrice + fittingsPrice + tubingPrice + platePrice + laborPrice;
var summary = "firechek: "+firechekPrice + "
pilot valve: "+ pilotPrice+"
fittings: "+ fittingsPrice+"
tubing: "+tubingPrice+"
plate: "+platePrice+"
labor: "+laborPrice;
document.getElementById('priceSummary').innerHTML=summary+"
BOM (using NPT 165 for ALL temps and FC connections)
"+BOM;
document.getElementById('price').innerHTML = price;
document.codeform.price.value = price;
document.codeform.weight.value = weight;
var qty = document.codeform.qty.value;
document.getElementById('totalPrice').innerHTML = price * qty;
}
function addToCart() {
document.codeform.submit();
}
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";
}