function selectModel(pn) {
var size = pn.substr(9, 3);
var func = pn.substr(12, 1);
var seal = pn.substr(13, 2);
var supp = pn.substr(15);
// 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 con = "N";
var seal = "";
var lim = "";
var pic = "VA";
var NP = "";
var NPprice = 0;
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 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 NAMURprice = 0;
var price = 0;
var accessPrice = 0;
var accessoryPrice = 0;
var assemblyWeight = 0;
var accessWeight = 0;
var accessoryWeight = 0;
var actcad = "";
var CADmc="not_available";
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('portStyle1').className='selection';
document.codeform.port[0].disabled=0;
document.getElementById('add2cartLable').innerHTML='Add to Cart';
document.getElementById('wiringIcon').style.display="none";
document.codeform.sol_type[0].disabled=0;
document.getElementById('sol_type1').style.color="#000000";
// ================= reset summary boxes ==========================
document.getElementById('priceSummary').innerHTML = "Error!";
document.getElementById('weightSummary').innerHTML = "Error!";
// ================================================ 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"; }
if (document.codeform.size[7].checked) { document.getElementById('size8').className="selectionChecked"; var siz = "037"; var con="G"; var sizeDescrip = "G (BSPP) 3/8 inch"; }
if (document.codeform.size[8].checked) { document.getElementById('size9').className="selectionChecked"; var siz = "050"; var con="G"; var sizeDescrip = "G (BSPP) 1/2 inch"; }
if (document.codeform.size[9].checked) { document.getElementById('size10').className="selectionChecked"; var siz = "075"; var con="G"; var sizeDescrip = "G (BSPP) 3/4 inch"; }
if (document.codeform.size[10].checked) { document.getElementById('size11').className="selectionChecked"; var siz = "100"; var con="G"; var sizeDescrip = "G (BSPP) 1 inch"; }
if (document.codeform.size[11].checked) { document.getElementById('size12').className="selectionChecked"; var siz = "125"; var con="G"; var sizeDescrip = "G (BSPP) 1 1/4 inch"; }
if (document.codeform.size[12].checked) { document.getElementById('size13').className="selectionChecked"; var siz = "150"; var con="G"; var sizeDescrip = "G (BSPP) 1 1/2 inch"; }
if (document.codeform.size[13].checked) { document.getElementById('size14').className="selectionChecked"; var siz = "200"; var con="G"; var sizeDescrip = "G (BSPP) 2 inch"; }
// ============= set NAMUR plate size ===============================
if (siz == "037" || siz == "050" || siz == "075" || siz == "100") { var NAMUR = "KBNV0003";} else { var NAMUR = "KBNV0007";}
// =================== exceptions for certain sizes =================
// ================================================ SEALS ====================================================
if (document.codeform.seals[0].checked) { document.getElementById('seals1').className="selectionChecked"; var seal = "VV"; var sealDescrip = "Viton®"; }
if (document.codeform.seals[1].checked) { document.getElementById('seals2').className="selectionChecked"; var seal = "EE"; var sealDescrip = "EPDM"; }
if (document.codeform.seals[2].checked) { document.getElementById('seals3').className="selectionChecked"; var seal = "BB"; var sealDescrip = "BUNA"; }
// =================== Step 1 Summary =================
var sizeDescrip = "Size and Connection: " + sizeDescrip;
var sealDescrip = "Seal Material: "+ sealDescrip;
var seatDescrip = "Seat Material: PTFE (15% Glass Fiber)";
var step1summary = bodyMatDescrip + "
"+sizeDescrip+"
"+sealDescrip+"
"+seatDescrip;
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";
}
// ===================================================== Solenoids =============================================================
// ========================== 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 portDescrip = "NAMUR mounting pad";
var SOL = "NP";
} else {
document.getElementById('portStyle1').className="selectionChecked";
var portDescrip = "1/8 inch NPT ports";
}
// ===================================================== 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;
var NAMURprice = eval(NAMUR+".price");
}
// ===================================================== 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) Magnetic IP67 reed switch - 1 to signal OPEN and 1 to signal CLOSED";
var limPrice = (FM7B9200.price * 2) + eval("MAGNET.price") + (1 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM7B9200 x 2 + MAGNET + 1 LABUNITS)";
}
if (document.codeform.lim[1].checked) {
document.getElementById('lim2').className="selectionChecked";
var lim = "GO"; var limpic="GO"; var limDescrip = "[GO] Magnetic IP67 reed switch - signal on OPEN";
var limPrice = FM7B9200.price + eval("MAGNET.price") + (1 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM7B9200 + MAGNET + 1 LABUNITS)";
}
if (document.codeform.lim[2].checked) {
document.getElementById('lim3').className="selectionChecked";
var lim = "GC"; var limpic="GC"; var limDescrip = "[GC] Magnetic IP67 reed switch - signal on CLOSED";
var limPrice = FM7B9200.price + eval("MAGNET.price") + (1 * LABUNIT.price);
var priceSum = priceSum + "
Limit Switch: "+ limPrice + " (FM7B9200 + MAGNET + 1 LABUNITS)";
}
}
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 step2summary = actDescrip;
if (document.codeform.solenoid[0].checked == false) { step2summary += "
" + solDescrip + " (NAMUR adapter plate "+NAMUR+" included)"; }
if (document.codeform.limit[0].checked == false) { step2summary += "
" + limDescrip;}
document.getElementById('step2summary').innerHTML = step2summary;
// ======================================================== SET step 3 summary ==================================================
// =========================================================== SET MODEL CODE =============================================
var mc = "VIP-EVO-"+con+siz+act+seal+NP+sol+lim;
var valveBody = "VIP_EVO_"+con+siz+act+seal;
var valveBodyPrice = "VIP_EVO_"+con+siz+act+seal;
// if (seal == "BB" || seal == "EE") {
// var valveBodyPrice = "VIP_EVO_"+"N"+siz+act+"BB";
// }
if (document.codeform.solenoid[0].checked == 0) { var solpic = solType+solpic;}
var pic = "VIP-EVO"+solpic+limpic;
var CADmc="notAvailable";
document.getElementById('PN').innerHTML =mc;
document.codeform.id.value=mc;
document.getElementById('MClinks').innerHTML =mc;
document.getElementById('mainIMG').src = "/VIP-EVO/models/"+pic+".jpg";
document.codeform.imgsrc.value="/VIP-EVO/models/"+pic+".jpg";
// document.codeform.CADmc.value=CADmc;
// =========================================================== SET PRICING =============================================
var qty = document.codeform.qty.value;
// VALVE -=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
var basePrice = eval(valveBodyPrice+".price");
var baseWeight = eval(valveBodyPrice+".weight");
var priceSum = priceSum + "
Valve Price: "+basePrice+" ("+valveBody+")";
var weightSum = weightSum + "
Valve: "+baseWeight+" ("+valveBody+")";
// SOLENOID -=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
if (document.codeform.port[1].checked) {
var priceSum = priceSum + "
NAMUR Plate: "+KBNJ0001.price+" (KBNJ0001)";
var NPprice = KBNJ0001.price;
}
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+")";
}
var priceSum = priceSum + "
NAMUR Plate: "+eval(NAMUR+".price")+" ("+NAMUR+")";
var weightSum = weightSum + "
NAMUR Plate: "+eval(NAMUR+".price")+" ("+NAMUR+")";
}
// 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 + NPprice + solPrice + limPrice + NAMURprice);
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";
}
if (basePrice == 0) {
alert('Valves with EPDM seals are currently special order.\nPlease call 1-800-899-0553 for pricing and availability');
document.getElementById('add2cartLable').innerHTML='Call for Pricing';
}
}
// ========================================================== END OF MAIN FUNCTION ============================================================
// ============================================================= OTHER FUNCTIONS =========================================================
function addToCart() {
if (document.getElementById('add2cartLable').innerHTML == "Add to Cart") {
document.codeform.submit();
} else {
alert('Valves with EPDM seals are currently special order.\nPlease call 1-800-899-0553 for pricing and availability.');
}
}
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('size8').className="selection";
document.getElementById('size9').className="selection";
document.getElementById('size10').className="selection";
document.getElementById('size11').className="selection";
document.getElementById('size12').className="selection";
document.getElementById('size13').className="selection";
document.getElementById('size14').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";
}