function selectModel(pn) {
var size = pn.substr(0, 3);
var func = pn.substr(5, 1);
var seal = pn.substr(6, 2);
var supp = pn.substr(8);
// alert(size);
// alert(func);
// alert(seal);
//----------------------------------- SELECT SIZE ----------------------------
if (size == "037") {
document.codeform.size[0].checked=true;
}
if (size == "050") {
document.codeform.size[1].checked=true;
}
if (size == "075") {
document.codeform.size[2].checked=true;
}
if (size == "100") {
document.codeform.size[3].checked=true;
}
if (size == "125") {
document.codeform.size[4].checked=true;
}
if (size == "150") {
document.codeform.size[5].checked=true;
}
if (size == "200") {
document.codeform.size[6].checked=true;
}
//----------------------------------- SELECT Actuator ----------------------------
if (func == "C") {
document.codeform.act_p[0].checked=true;
}
if (func == "O") {
document.codeform.act_p[1].checked=true;
}
if (func == "D") {
document.codeform.act_p[2].checked=true;
}
//----------------------------------- SELECT SEALS ----------------------------
if (seal == "VV") {
document.codeform.seals[0].checked=true;
}
if (seal == "EE") {
document.codeform.seals[1].checked=true;
}
if (seal == "BB") {
document.codeform.seals[2].checked=true;
}
//------------------------------ Select Accessories --------------------------
if (supp != "") {
var solenoid = "";
var limitswitch = "";
if (supp.length == 3) { // ---------------- just a solenoid
var solenoid = supp;
}
if (supp.length == 2) { // ---------------- just a limit switch
var limitswitch = supp;
}
if (supp.length == 5) { // ---------------- solenoid and limit switch
var solenoid = supp.substr(0, 3);
var limitswitch = supp.substr(3);
}
if (solenoid != "") { // there is a solenoid - select the right one
var soltype = supp.substr(0, 1);
var solconn = supp.substr(1, 1);
var solvolt = supp.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 == "1") {
selectSolType('wpSol');
document.codeform.solenoid[1].checked=true;
document.codeform.sol_wp[4].checked=true;
}
if (solconn == "2") {
selectSolType('xpSol');
document.codeform.solenoid[2].checked=true;
document.codeform.sol_xp.checked=true;
}
if (solconn == "3") {
selectSolType('wpSol');
document.codeform.solenoid[1].checked=true;
document.codeform.sol_wp[0].checked=true;
}
if (solconn == "4") {
selectSolType('wpSol');
document.codeform.solenoid[1].checked=true;
document.codeform.sol_wp[1].checked=true;
}
if (solconn == "5") {
selectSolType('wpSol');
document.codeform.solenoid[1].checked=true;
document.codeform.sol_wp[2].checked=true;
}
if (solconn == "6") {
selectSolType('wpSol');
document.codeform.solenoid[1].checked=true;
document.codeform.sol_wp[3].checked=true;
}
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;}
}
if (limitswitch != "") { // there is a limit switch - select the right one
selectLimType('wpLim');
if (limitswitch == "G2") {
document.codeform.limit[1].checked=true;
document.codeform.lim[0].checked=true;
}
if (limitswitch == "GO") {
document.codeform.limit[1].checked=true;
document.codeform.lim[1].checked=true;
}
if (limitswitch == "GC") {
document.codeform.limit[1].checked=true;
document.codeform.lim[2].checked=true;
}
}
}
changeCode();
}
function changeCode() {
// set vars that don't change and initialize others
var sol = "";
var seal = "";
var lim = "";
var pic = "VA";
var solVolt = "";
var solType = "";
var solCon = "";
var bodyMatDescrip = "Body Material: Nickel Plated Brass";
var sizeDescrip = "";
var sealDescrip = "";
var limDescrip = "";
var solConDescrip = "";
var solVoltDescrip = "";
var solTypeDescrip = "";
var solRatingDescrip = "";
var accessDescrip = ""; // ----------- actuator accesories on assembly
var accessoryDescrip = ""; // ------- accesories that ship loose
var portDescrip = "";
var NPdescrip = "G 1/8 inch";
var NP = "";
var NPprice = 0;
var actpic = "";
var solpic = "";
var limpic = "";
var failPos = "";
var accPrice = 0;
var priceSum = "Pricing:";
var weightSum = "Weight:";
var limPrice = 0;
var limWeight = 0;
var solPrice = 0;
var solWeight = 0;
var price = 0;
var accessPrice = 0;
var accessoryPrice = 0;
var assemblyWeight = 0;
var accessWeight = 0;
var accessoryWeight = 0;
var actcad = "";
var S4mod = "";
var S4bat = "";
var S4din = "";
var s4kitName = "";
var step1summary = "";
var step2summary = "";
var step3summary = "";
var alertNote = "";
// ====================== reset classes of all selection divs and table cells to UN-selected state
resetSizeDivs();
resetSealDivs();
resetSolDivs();
resetLimDivs();
document.getElementById('wiringIcon').style.display="none";
document.codeform.sol_type[0].disabled=0;
document.getElementById('sol_type1').style.color="#000000";
document.getElementById('portStyle2').className='selection';
document.codeform.port[1].disabled=0;
// ================= reset summary boxes ==========================
document.getElementById('priceSummary').innerHTML = "Error!";
document.getElementById('weightSummary').innerHTML = "Error!";
document.codeform.port[0].disabled=0;
document.codeform.port[1].disabled=0;
document.getElementById('portStyle1').className='selection';
document.codeform.port[0].disabled=0;
// ================================================ SIZE ====================================================
if (document.codeform.size[0].checked) { document.getElementById('size1').className="selectionChecked"; var siz = "037"; var sizeDescrip = "3/8 inch NPT"; }
if (document.codeform.size[1].checked) { document.getElementById('size2').className="selectionChecked"; var siz = "050"; var sizeDescrip = "1/2 inch NPT"; }
if (document.codeform.size[2].checked) { document.getElementById('size3').className="selectionChecked"; var siz = "075"; var sizeDescrip = "3/4 inch NPT"; }
if (document.codeform.size[3].checked) { document.getElementById('size4').className="selectionChecked"; var siz = "100"; var sizeDescrip = "1 inch NPT"; }
if (document.codeform.size[4].checked) { document.getElementById('size5').className="selectionChecked"; var siz = "125"; var sizeDescrip = "1 1/4 inch NPT"; }
if (document.codeform.size[5].checked) { document.getElementById('size6').className="selectionChecked"; var siz = "150"; var sizeDescrip = "1 1/2 inch NPT"; }
if (document.codeform.size[6].checked) { document.getElementById('size7').className="selectionChecked"; var siz = "200"; var sizeDescrip = "2 inch NPT"; }
// =================== exceptions for certain sizes =================
// ================================================ SIZE ====================================================
if (document.codeform.seals[0].checked) { document.getElementById('seals1').className="selectionChecked"; var seal = "VV"; var sealDescrips = "Viton®"; }
if (document.codeform.seals[1].checked) { document.getElementById('seals2').className="selectionChecked"; var seal = "EE"; var sealDescrips = "EPDM"; }
if (document.codeform.seals[2].checked) { document.getElementById('seals3').className="selectionChecked"; var seal = "BB"; var sealDescrips = "BUNA"; }
// =================== Step 1 Summary =================
var sizeDescrip = "Size and Connection: "+sizeDescrip;
var sealDescrip = "Seats and Seal Material: "+ sealDescrips;
var step1summary = bodyMatDescrip + "
"+sizeDescrip+"
"+sealDescrip;
document.getElementById('step1summary').innerHTML = step1summary;
// ================================================= ACTUATORS =============================================
resetAirActDivs();
// ============================================= AIR ======================================================
if (document.codeform.act_p[0].checked) {
document.getElementById('act_p1').className="selectionChecked";
var act = "C";
var actDescrip = "Spring return, fail CLOSED (sized for using 60psi supply air in applications up to 150psi ΔP)";
}
if (document.codeform.act_p[1].checked) {
document.getElementById('act_p2').className="selectionChecked";
var act = "O";
var actDescrip = "Spring return, fail OPEN (sized for using 60psi supply air in applications up to 150psi ΔP)";
}
if (document.codeform.act_p[2].checked) {
document.getElementById('act_p3').className="selectionChecked";
var act = "D";
var actDescrip = "Double Acting (sized for using 40psi supply air in applications up to 150psi ΔP)";
}
// ================ disable E solenoids for Double Acting ========================
if (act == "D") {
if (document.codeform.solenoid[1].checked || document.codeform.solenoid[2].checked) {
if (document.codeform.sol_type[0].checked) {
document.codeform.sol_type[1].checked = 1;
}
}
document.getElementById('sol_type1').className="selectionDisabled";
document.getElementById('sol_type1').style.color="#CCCCCC";
}
// ========================== PORT STYLE ================================
if (document.codeform.solenoid[0].checked == 0) {
document.getElementById('portStyle2').className='selectionChecked';
document.codeform.port[1].checked=1;
document.getElementById('portStyle1').className='selectionDisabled';
document.codeform.port[0].disabled=1;
}
if (document.codeform.port[1].checked) {
document.getElementById('portStyle2').className="selectionChecked";
var NP = "NP"; var NPdescrip = "NAMUR mounting pad";
var SOL = "NP";
var solpic = "NP";
} else {
document.getElementById('portStyle1').className="selectionChecked";
var NPdescrip = "1/8 inch NPT ports";
}
// ===================================================== Solenoids =============================================================
// ===================================================== WeatherProof Solenoid ===============================================
if (document.codeform.solenoid[1].checked) {
var solRatingDescrip = "Weatherproof (NEMA 4/4x)";
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 ";
}
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_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 solCon = "2"; var solpic = "2"; //**************** no need to check - it's the only one
var solDescrip = "Explosion Proof (UL and CSA listed), 4-way/2-position, with potted 1/2 inch conduit connector.";
}
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;
}
// ===================================================== Limit Switches =======================================================
if (document.codeform.limit[1].checked) {
// ===================================================== WeatherProof Limit Switches ============================
if (document.codeform.lim[0].checked) {
document.getElementById('lim1').className="selectionChecked";
var lim = "G2"; var limpic="G2"; var limDescrip = "[G2] (2x) IP67 weatherproof proximity sensor - signal OPEN and CLOSED";
if (siz == "050" || siz == "037") {
var limPrice = (FM060000.price * 2) + (SFM06000.price * 2) + eval("_"+siz+"VABAR.price") + (eval("MAG"+siz+".price") * 2) + (1.5 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM060000 x 2 + SFM06000 x 2 + "+siz+"VABAR + MAG"+siz+" x 2 + 1.5 LABUNIT)";
var limWeight = (FM060000.weight * 2) + (SFM06000.weight * 2) + eval("_"+siz+"VABAR.weight") + (eval("MAG"+siz+".weight") * 2);
var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (FM060000 x 2 + SFM06000 x 2 + "+siz+"VABAR + MAG"+siz+" x 2)";
} else {
var limPrice = FM060000.price * 2 + SFM06000.price * 2 + eval("_"+siz+"VABAR.price") + eval("MAG"+siz+".price") + (1.5 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM060000 x 2 + SFM06000 x 2 + "+siz+"VABAR + MAG"+siz+" + 1.5 LABUNIT)";
var limWeight = (FM060000.weight * 2) + (SFM06000.weight * 2) + eval("_"+siz+"VABAR.weight") + (eval("MAG"+siz+".weight"));
var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (FM060000 x 2 + SFM06000 x 2 + "+siz+"VABAR + MAG"+siz+")";
}
}
if (document.codeform.lim[1].checked) {
document.getElementById('lim2').className="selectionChecked";
var lim = "GO"; var limpic="GO"; var limDescrip = "[GO] IP67 weatherproof proximity sensor - signal on OPEN";
var limPrice = FM060000.price + SFM06000.price + eval("_"+siz+"VABAR.price") + eval("MAG"+siz+".price") + (1.5 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM060000 + SFM06000 + "+siz+"VABAR + MAG"+siz+" + 1.5 LABUNIT)";
var limWeight = FM060000.weight + SFM06000.weight + eval("_"+siz+"VABAR.weight") + eval("MAG"+siz+".weight");
var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (FM060000 + SFM06000 + "+siz+"VABAR + MAG"+siz+")";
}
if (document.codeform.lim[2].checked) {
document.getElementById('lim3').className="selectionChecked";
var lim = "GC"; var limpic="GC"; var limDescrip = "[GC] IP67 weatherproof proximity sensor - signal on CLOSED";
var limPrice = FM060000.price + SFM06000.price + eval("_"+siz+"VABAR.price") + eval("MAG"+siz+".price") + (1.5 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM060000 + SFM06000 + "+siz+"VABAR + MAG"+siz+" + 1.5 LABUNIT)";
var limWeight = FM060000.weight + SFM06000.weight + eval("_"+siz+"VABAR.weight") + eval("MAG"+siz+".weight");
var weightSum = weightSum + "
Limit Switch: "+ limWeight + " (FM060000 + SFM06000 + "+siz+"VABAR + MAG"+siz+")";
}
}
if (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";
}
// ======== end of ACTUATORS
// ======================================================== SET step 2 summary ==================================================
var actDescrip = "Actuator: "+actDescrip;
var solDescrip = "NAMUR Solenoid: "+solDescrip;
var limDescrip = "Limit Switch: "+limDescrip;
var portDescrip = "Air Port Connections: " + NPdescrip;
var step2summary = actDescrip + "
" + portDescrip;
if (document.codeform.solenoid[0].checked == false) { step2summary += "
" + solDescrip; }
if (document.codeform.limit[0].checked == false) { step2summary += "
" + limDescrip;}
if (NP == "NP") {
"with NAMUR adapter plate";
}
document.getElementById('step2summary').innerHTML = step2summary;
// ======================================================== SET step 3 summary ==================================================
// =========================================================== SET MODEL CODE =============================================
var mc=siz+"VA"+act+seal+NP+sol+lim;
var sealkit = 'RKVA'+siz+seal;
//================= set sealkit ======================================
document.codeform.sealkit.value=sealkit;
document.codeform.sealkitprice.value=eval(sealkit+".price");
document.codeform.sealkitweight.value=eval(sealkit+".weight");
document.codeform.sealkitdescrip.value = seal+" seal replacement kit for "+siz+" VA coaxial valve";
var sealkitdescrip = "Description: "+sealDescrips+" seal repair kit for "+mc+" VA Series coaxial valve";
document.codeform.sealkitdescrip.value=sealkitdescrip;
var valveBody= "_"+siz+"VA"+act+seal;
var valveBodyPrice= "_"+siz+"VA"+act+seal;
if (act == "O") {
var valveBody= "_"+siz+"VAC"+seal;
var valveBodyPrice= "_"+siz+"VACVV";
}
if (document.codeform.solenoid[0].checked == 0) { var solpic = solType+solpic;}
var pic = "VA"+solpic+limpic;
var CADmc=siz+"VA";
document.getElementById('PN').innerHTML =mc;
document.codeform.id.value=mc;
document.getElementById('MClinks').innerHTML =mc;
document.getElementById('mainIMG').src = "/VA/models/"+pic+".jpg";
document.codeform.imgsrc.value="/VA/models/"+pic+".jpg";
document.codeform.CADmc.value=CADmc;
document.codeform.CADmc.value="notAvailable";
document.codeform.CADurl.value="notAvailable";
// =========================================================== SET PRICING =============================================
var qty = document.codeform.qty.value;
// VALVE =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
var basePrice = eval(valveBodyPrice+".price");
var baseWeight = eval(valveBody+".weight");
var priceSum = priceSum + "
Valve Price: "+basePrice+" ("+valveBody+")";
var weightSum = weightSum + "
Valve: "+baseWeight+" ("+valveBody+")";
// NAMUR PLATE =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
if (NP == "NP") {
var priceSum = priceSum + "
NAMUR PLATE: "+KBNJ0001.price+" (KBNJ0001)";
var NPprice = KBNJ0001.price;
}
// SOLENOID =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
if (sol != "") {
if (solCon == "1" || solCon == "2") {
solPrice = eval(sol+".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");
solWeight = eval(solBase+".weight") + eval(solConID+".weight");
var priceSum = priceSum + "
Solenoid Price: "+solPrice+" ("+solBase+", "+solConID+")";
var weightSum = weightSum + "
Solenoid: "+solWeight+" ("+solBase+", "+solConID+")";
}
}
// LIMIT SWITCH =--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// (taken care of above when determining Limit Switch)
// LABOR =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if (sol != "") {
var mountLab = 0;
} else {
var mountLab = 1;
}
//alert(priceSum);
var mountPrice= mountLab * LABUNIT.price;
var fullPrice = Math.ceil(basePrice + solPrice + limPrice + NPprice);
var fullWeight = Math.ceil(baseWeight + solWeight + limWeight);
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 + accessPrice) * qty;
document.getElementById('totalPrice').innerHTML = totalPrice;
// =========================================================== SET DESCRIPTION =============================================
var fullSummary = step1summary + "
" + step2summary + "
" + step3summary;
if (alertNote != "") {
// alert(alertNote+ '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 FUNCTION ============================================================
// ============================================================= OTHER FUNCTIONS =========================================================
function addToCart() {
document.codeform.submit();
}
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('size1').className="selection";
document.getElementById('size2').className="selection";
document.getElementById('size3').className="selection";
document.getElementById('size4').className="selection";
document.getElementById('size5').className="selection";
document.getElementById('size6').className="selection";
document.getElementById('size7').className="selection";
document.getElementById('portStyle1').className="selection";
document.getElementById('portStyle2').className="selection";
}
function resetAirActDivs() {
document.getElementById('act_p1').className="selection";
document.getElementById('act_p2').className="selection";
document.getElementById('act_p3').className="selection";
}
function resetElecActDivs() {
document.getElementById('act_e1').className="selection";
document.getElementById('act_e2').className="selection";
document.getElementById('act_e3').className="selection";
document.getElementById('act_e4').className="selection";
document.getElementById('act_e5').className="selection";
document.getElementById('act_e6').className="selection";
document.getElementById('act_e7').className="selection";
document.getElementById('act_e8').className="selection";
document.getElementById('act_e9').className="selection";
document.getElementById('act_e10').className="selection";
}
function resetSealDivs() {
document.getElementById('seals1').className="selection";
document.getElementById('seals2').className="selection";
document.getElementById('seals3').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_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('lim1').className="selection";
document.getElementById('lim2').className="selection";
document.getElementById('lim3').className="selection";
}
function selectActType(type) {
document.getElementById('air').className="tab";
document.getElementById('elec').className="tab";
document.getElementById('man').className="tab";
document.getElementById(type).className="tabSelected";
document.getElementById('airSection').style.display="none";
document.getElementById('elecSection').style.display="none";
document.getElementById('manSection').style.display="none";
document.getElementById(type+'Section').style.display="block";
}
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(type).className="tabSelected";
document.getElementById('noLimSection').style.display="none";
document.getElementById('wpLimSection').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";
}