function help(page){
OpenWin = this.open(page, "Help", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no,height=700,width=600")
}
function changeCode(){
var bod = "4";
var flo = "";
var act = "";
var sol = "";
var lim = "";
var err = "";
var con = "N";
var ser = "";
var solpic = "";
var price = 0;
var base = 0;
var solprice = 0;
var solweight = 0;
var limweight = 0;
var limprice = 0;
var limdescrip = 0;
var siz = "";
var nqs = "no";
var pmc = "";
var solc = "";
document.codeform.price.value = "";
if (document.codeform.size[0].checked) {var siz = "43"; var con = "N"};
if (document.codeform.size[1].checked) {var siz = "44"; var con = "N"};
if (document.codeform.size[2].checked) {var siz = "45"; var con = "N"};
if (document.codeform.size[3].checked) {var siz = "46"; var con = "N"};
if (document.codeform.size[4].checked) {var siz = "47"; var con = "N"};
if (document.codeform.size[5].checked) {var siz = "48"; var con = "N"};
if (document.codeform.size[6].checked) {var siz = "49"; var con = "N"};
if (document.codeform.size[7].checked) {var siz = "U4"; var con = "C"};
if (document.codeform.size[8].checked) {var siz = "U5"; var con = "C"};
if (document.codeform.size[9].checked) {var siz = "U6"; var con = "C"};
if (document.codeform.size[10].checked) {var siz = "U8"; var con = "C"};
if (document.codeform.size[11].checked) {var siz = "U9"; var con = "C"};
if (document.codeform.flow[0].checked) {var flo = "S"; var solt = "E"; var acttype = " Spring Return";};
if (document.codeform.flow[1].checked) {var flo = "C"; var solt = "E"; var acttype = " Spring Return";};
if (document.codeform.flow[2].checked) {var flo = "A"; var solt = "E"; var acttype = " Spring Return";};
if (document.codeform.flow[3].checked) {var flo = "D"; var solt = "C"; var acttype = " Double Acting";};
if (document.codeform.body[0].checked) {var bod = "4"};
if (document.codeform.body[1].checked) {var bod = "9"};
// Solenoids ---------------------------
if (document.codeform.solenoid[0].checked) {var solc = ""};
if (document.codeform.solenoid[1].checked) {var solc = "3"};
if (document.codeform.solenoid[2].checked) {var solc = "4"};
if (document.codeform.solenoid[3].checked) {var solc = "5"};
if (document.codeform.solenoid[4].checked) {var solc = "6"};
if (document.codeform.solenoid[5].checked) {var solc = "2"};
if (document.codeform.solenoidv[0].checked) {var solv = "A"; var solvoltage="120 VAC"};
if (document.codeform.solenoidv[1].checked) {var solv = "B"; var solvoltage="24 VDC"};
if (document.codeform.solenoidv[2].checked) {var solv = "F"; var solvoltage="12 VDC"};
if (solc!=""){var sol=solt+solc+solv; var solpic=solt+"3";
if (solc=="2"){ var solpic=solt+"2";}
}
if (document.codeform.limit[0].checked) {var lim = ""; var limdescrip="";};
if (document.codeform.limit[1].checked) {var lim = "M2"};
if (document.codeform.limit[2].checked) {var lim = "I2"};
if (lim == "I2"){
alert('The A-Link Limit Switch is not available for online ordering.\rCall 1-800-899-0553 for more information.\r\rThe Limit Switch will be reset to NONE.');
document.codeform.limit[0].checked = 1;
var lim = ""
}
if ((flo == "C" || flo == "D") && (con=="C")){
alert('TRI-CLAMP connections are only available on with Flow A or S.\r\rThe Flow will automatically be set to S.');
document.codeform.flow[0].checked = 1;
var flo = "S"}
if (flo == "C"){
if (siz == "43" || siz == "44" || siz == "45" || siz == "46" || siz == "U4" || siz == "U5" || siz == "U6") {
alert ('For sizes up to 1 inch, use Normally Closed with 2 Springs.\r\rThe selection will be automatically corrected for you.');
document.codeform.flow[0].checked = 1;
var flo = "S" }
}
if (bod == "9" && con == "C"){
alert('TRI-CLAMP connections are only available on STAINLESS STEEL models.\r\rThe BODY MATERIAL will automatically be set to STAINLESS STEEL.');
document.codeform.body[0].checked = 1;
var bod = "4"}
if ((solc == "2") && (lim != "")) {
alert('You Have Selected an EXPLOSION PROOF Solenoid.\rThe limit switch is NOT explosion proof.\rThis configuration is not available for ordering online.\rPlease call 1-800-899-0553 for more information on explosion proof limit switches.\r\rThe LIMIT SWITCH will be reset to NONE.');
document.codeform.limit[0].checked = 1;
var lim = ""
}
var mod = con+flo+'_'+siz;
var actdescrip = eval('act_'+mod);
if (actdescrip == "DN50"){ var act = "16";}
if (actdescrip == "DN63"){ var act = "18";}
if (actdescrip == "DN90"){ var act = "21";}
if (actdescrip == "DN110"){ var act = "23";}
var mc='J'+bod+flo+"PG"+siz+act+sol+lim;
var baseprice = eval('baseprice_'+bod+'_'+mod);
var baseweight = eval('baseweight_'+mod);
var pic = "J"+bod+con+solpic+lim;
if (pic == "J4"){var pic = "J4N"}
if (pic == "J9"){var pic = "J9N"}
// solenoid pricing, weight, & description
var solbeg2 = sol.substring(0, 2);
if (sol !=''){
var solbeg2 = sol.substring(0, 2);
var solprice = eval('sol_'+solbeg2+'_price');
var solweight = eval('sol_'+solbeg2+'_weight');
var soldescrip = (eval('sol_'+solbeg2+'_descrip'))+" "+solvoltage;
}
if (lim =='M2'){
var limprice = 125; var limdescrip="M2 description"; var limweight=1;
}
if (lim =='I2'){
var limprice = 10000; var limdescrip="I2 description"; var limweight=1;
}
if (price != "call 1-800-899-0553"){
var price = baseprice+solprice+limprice}
var weight = baseweight+solweight+limweight;
var mc = "J"+bod+flo+"PG"+act+siz+sol+lim;
if (siz == ""){var price = ""; var mc = "Select Size"}
document.codeform.price.value = price;
document.codeform.weight.value = weight;
document.codeform.modelcode.value = mc;
document.codeform.id.value = mc;
if (bod=="4"){var bodmat="Stainless Steel"; document.codeform.prodname.value= "Ares Series";}
if (bod=="9"){var bodmat="Bronze"; document.codeform.prodname.value= "Zeus Series";}
document.codeform.prodseries.value = 'High Cycle-Life Pnuematic Angle Seat Valve';
var infotext = " Body Material: "+bodmat+"
"+
" Size & Connection: "+eval('sizdescrip_'+mod)+" "+eval('condescrip_'+mod)+"
"+
" Seats: PTFE | Stem Seals: PTFE
"+
" Actuator: "+actdescrip+acttype+"
";
if (soldescrip != "") {
var infotext = infotext +"Actuator Solenoid: "+sol+" "+soldescrip+"
";}
if (limdescrip != "") {
var infotext = infotext +"Limit Switch: "+limdescrip+"
";}
document.codeform.info.value = infotext;
document.codeform.imgsrc.value = "/anglevalve/models/"+pic+".jpg";
var psummary = 'price = base:'+baseprice+'
sol:'+solprice+'
lim:'+limprice+'
';
var wsummary = 'weight = base:'+baseweight+'
sol:'+solweight+'
lim:'+limweight+'
';
// document.getElementById('infospan').innerHTML = infotext;
// document.getElementById('calcspan').innerHTML = "
| "+psummary+" | "+wsummary+" |