function display(volume,viscosity) { 
var aaa=0, bbb=0, ccc=0, mix1=0, vol = volume.value, visc = viscosity.value, mixList
mixList = new Array("3N1-0","3N1-1","3N1-2","3N1-3","PD-0","PD-1","PD-2","PD-3","PD-4","PD-5","PD-6","PD-7","PD-8","PG-0","PG-1","PG-2","PG-3","PG-4","PG-5","PG-6","PG-7","PG-8")
if(vol < 50) { vol=50 } 
if(vol > 5000) { vol=5000 } 
if(visc < 1) { visc=1 } 
if(visc > 50000) { vol=50000 } 
// start logic for viscosities of 1 
if (visc == 1) {
if (vol == 50) {aaa=1;  bbb=5 } else if
(vol >50 && vol <= 100) { aaa=2;  bbb=6 } else if
(vol >100 && vol <= 250) { aaa=2;  bbb=6 } else if
(vol >250 && vol <= 500) { aaa=7; } else if
(vol >500 && vol <= 1000) { aaa=12;  bbb=16 }  else if
(vol >1000 && vol <= 2000) { aaa=13;  bbb=16 } else if
(vol >2000 && vol <= 3000) { aaa=18; } else if
(vol >3000 && vol <= 5000) { aaa=19; }
} else if
//start logic for viscosities between 1 && 100 cPs 
(visc >1 && visc <= 100) {
if (vol == 50) { aaa=1;  bbb=5 } else if
(vol >50 && vol <= 100) { aaa=2;  bbb=6 } else if
(vol >100 && vol <= 250) { aaa=4;  bbb=7 } else if
(vol >250 && vol <= 500) { aaa=10 } else if
(vol >500 && vol <= 1000) { aaa=13;  bbb=15 }  else if
(vol >1000 && vol <= 2000) { aaa=16 } else if
(vol >2000 && vol <= 3000) { aaa=17 } else if
(vol >3000 && vol <= 5000) { aaa=19 }
} else if
//start logic for viscosities between 100 && 250 cPs 
(visc > 100 && visc <= 250) {
if (vol == 50) { aaa=2;  bbb=6  } else if
(vol >50 && vol <= 100) { aaa=4;  bbb=7  } else if
(vol >100 && vol <= 250) { aaa=4;  bbb=8;  ccc=15  } else if
(vol >250 && vol <= 500) { aaa=12;  bbb=15  } else if
(vol >500 && vol <= 1000) { aaa=15 }  else if
(vol >1000 && vol <= 2000) { aaa=17  } else if
(vol >2000 && vol <= 3000) { aaa=19  } else if
(vol >3000 && vol <= 5000) { aaa=22 }
} else if
//start logic for viscosities between 250 && 500 cPs 
(visc > 250 && visc <=500) {
if (vol == 50) { aaa=2;  bbb=6; ccc=15  } else if
(vol >50 && vol <= 100) { aaa=4;  bbb=8;  ccc=16  } else if
(vol >100 && vol <= 250) { aaa=13;  bbb=16  } else if
(vol >250 && vol <= 500) { aaa=13;  bbb=16  } else if
(vol >500 && vol <= 1000) { aaa=17 }  else if
(vol >1000 && vol <= 2000) { aaa=18  } else if
(vol >2000 && vol <= 3000) { aaa=19  } else if
(vol >3000 && vol <= 5000) { aaa=22 }
} else if
//start logic for viscosities between 500 && 1000 cPs 
(visc > 500 && visc <= 1000) {
if (vol == 50) { aaa=15  } else if
(vol >50 && vol <= 100) { aaa=16  } else if
(vol >100 && vol <= 250) { aaa=17  } else if
(vol >250 && vol <= 500) { aaa=19  } else if
(vol >500 && vol <= 1000) { aaa=21 }  else if
(vol >1000 && vol <= 2000) { aaa=22  } else if
(vol >2000 && vol <= 5000) { window.alert("Parameters require further analysis, please contact Delta.") }
} else if
//start logic for viscosities between 1000 && 2500 cPs 
(visc > 1000 && visc <= 2500) {
if (vol == 50) { aaa=16  } else if
(vol >50 && vol <= 100) { aaa=17  } else if
(vol >100 && vol <= 250) { aaa=19  } else if
(vol >250 && vol <= 500) { aaa=21  } else if
(vol >500 && vol <= 1000) { aaa=22 }  else if
(vol >1000 && vol <= 5000) { window.alert("Parameters require further analysis, please contact DELTA.") }
} else if
//start logic for viscosities between 2500 && 5000 cPs 
(visc > 2500 && visc <= 5000) {
if (vol == 50) { aaa=17  } else if
(vol >50 && vol <= 100) { aaa=19  } else if
(vol >100 && vol <= 250) { aaa=21  } else if
(vol >250 && vol <= 500) { aaa=22  } else if
(vol >500 && vol <= 5000) { window.alert("Parameters require further analysis, please contact DELTA.") }
} else if
//start logic for viscosities between 5000 && 15000 cPs 
(visc > 5000 && visc <= 15000) {
if (vol == 50) { aaa=19  } else if
(vol >50 && vol <= 100) { aaa=21  } else if
(vol >100 && vol <= 250) { aaa=22  } else if
(vol >250 && vol <= 5000) { window.alert("Parameters require further analysis, please contact DELTA.") }
} else if
//start logic for viscosities between 15000 && 50000 cPs 
(visc > 15000 && visc <= 50000) {
if (vol == 50) { aaa=21  } else if
(vol >50 && vol <= 100) { aaa=22  } else if
(vol >100 && vol <= 5000) { window.alert("Parameters require further analysis, please contact DELTA.") }
}
//line space
if (aaa>=1 && bbb==0 && ccc==0) { 
if (mixList[aaa-1].match("PD")) {mix1="http://www.deltamixers.com/products/pd.htm"} else if
(mixList[aaa-1].match("PG")) {mix1="http://www.deltamixers.com/products/pg.htm"}
//var newWin = open("") 
document.write("<head><title>DELTA Mixers</title></head><body link=\"white\" vlink=\"white\" alink=\"white\" bgcolor=\"#EAEAEA\">"+
"\r <table width=\"700\" valign=\"top\" align=\"center\" bgcolor=\"#2A4F64\" cellpadding=\"0\" cellspacing=\"0\">"+
"\r  <tr> "+
"\r    <td width=\"700\" height=\"97\"><img src=\"http://www.deltamixers.com/img/Title.gif\" width=\"700\" height=\"98\"></font></td>"+
"\r  </tr>"+
"\r  <tr> "+
"\r    <td width=\"157\"><font face=\"Arial, Helvetica, sans-serif\"></font></td>"+
"\r    <td width=\"453\"></td>"+
"\r  </tr>"+
"\r  <tr height=\"100\">"+
"\r<td><br><center><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&nbsp;&nbsp;Based on your tank volume of <b>" + vol + "</b> US gallons and fluid viscosity of <b>" + visc + "</b> cP:</p>"+
"\r<p>&nbsp;&nbsp;Your best DELTA mixer choice is a <a href=" + mix1 + "#" + mixList[aaa-1] + ">" + mixList[aaa-1] + ".</a></p></center></td>"+
"\r  </tr>"+
"\r<tr><td height=\"25\" align=\"center\" background=\"http://www.deltamixers.com/img/bottom-bar.gif\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&copy; "+
"\r 2006 PBH Industries</td><br><br></td></tr></table></body>")
} else if
//space
(aaa>=1 && bbb>=1 && ccc==0) {
if (mixList[aaa-1].match("PD")) {mix1="http://www.deltamixers.com/products/pd.htm"} else if 
(mixList[aaa-1].match("PG")) {mix1="http://www.deltamixers.com/products/pg.htm"} else if 
(mixList[aaa-1].match("3N")) {mix1="http://www.deltamixers.com/products/3n1.htm"} 
if (mixList[bbb-1].match("3N")) {mix2="http://www.deltamixers.com/products/3n1.htm"} else if 
(mixList[bbb-1].match("PD")) {mix2="http://www.deltamixers.com/products/pd.htm"} else if 
(mixList[bbb-1].match("PG")) {mix2="http://www.deltamixers.com/products/pg.htm"}
//var newWin = open("")
document.write("<head><title>DELTA Mixers</title></head><body link=\"white\" vlink=\"white\" alink=\"white\" bgcolor=\"#EAEAEA\">"+
"\r <table width=\"700\" valign=\"top\" align=\"center\" bgcolor=\"#2A4F64\" cellpadding=\"0\" cellspacing=\"0\">"+
"\r  <tr> "+
"\r    <td width=\"700\" height=\"97\"><img src=\"http://www.deltamixers.com/img/Title.gif\" width=\"700\" height=\"98\"></font></td>"+
"\r  </tr>"+
"\r  <tr> "+
"\r    <td width=\"157\"><font face=\"Arial, Helvetica, sans-serif\"></font></td>"+
"\r    <td width=\"453\"></td>"+
"\r  </tr>"+
"\r  <tr height=\"100\">"+
"\r<td><br><center><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&nbsp;&nbsp;Based on your tank volume of <b>" + vol + "</b> US gallons and fluid viscosity of <b>" + visc + "</b> cP:</p>"+
"\r<p>&nbsp;&nbsp;Your best DELTA mixer choices are <a href=" + mix1 + "#" + mixList[aaa-1] + ">" + mixList[aaa-1] + "</a> and <a href=" + mix2 + "#" +mixList[bbb-1] + ">" + mixList[bbb-1] + "</a>.</p></center></td>"+
"\r  </tr>"+
"\r<tr><td height=\"25\" align=\"center\" background=\"http://www.deltamixers.com/img/bottom-bar.gif\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&copy; "+
"\r 2006 PBH Industries</td><br><br></td></tr></table></body>")
} else if
//space
(aaa>=1 && bbb>=1 && ccc>=1) {
if (mixList[aaa-1].match("PD")) {mix1="http://www.deltamixers.com/products/pd.htm"} else if 
(mixList[aaa-1].match("PG")) {mix1="http://www.deltamixers.com/products/pg.htm"} else if 
(mixList[aaa-1].match("3N")) {mix1="http://www.deltamixers.com/products/3n1.htm"} 
if (mixList[bbb-1].match("3N")) {mix2="http://www.deltamixers.com/products/3n1.htm"} else if 
(mixList[bbb-1].match("PD")) {mix2="http://www.deltamixers.com/products/pd.htm"} else if 
(mixList[bbb-1].match("PG")) {mix2="http://www.deltamixers.com/products/pg.htm"}
if (mixList[ccc-1].match("3N")) {mix3="http://www.deltamixers.com/products/3n1.htm"} else if 
(mixList[ccc-1].match("PD")) {mix3="http://www.deltamixers.com/products/pd.htm"} else if 
(mixList[ccc-1].match("PG")) {mix3="http://www.deltamixers.com/products/pg.htm"}
//var newWin = open("")
document.write("<head><title>DELTA Mixers</title></head><body link=\"white\" vlink=\"white\" alink=\"white\" bgcolor=\"#EAEAEA\">"+
"\r <table width=\"700\" valign=\"top\" align=\"center\" bgcolor=\"#2A4F64\" cellpadding=\"0\" cellspacing=\"0\">"+
"\r  <tr> "+
"\r    <td width=\"700\" height=\"97\"><img src=\"http://www.deltamixers.com/img/Title.gif\" width=\"700\" height=\"98\"></font></td>"+
"\r  </tr>"+
"\r  <tr> "+
"\r    <td width=\"157\"><font face=\"Arial, Helvetica, sans-serif\"></font></td>"+
"\r    <td width=\"453\"></td>"+
"\r  </tr>"+
"\r  <tr height=\"100\">"+
"\r<td><br><center><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&nbsp;&nbsp;Based on your tank volume of <b>" + vol + "</b> US gallons and fluid viscosity of <b>" + visc + "</b> cP:</p>"+
"\r<p>&nbsp;&nbsp;Your best DELTA mixer choices are <a href=" + mix1 + "#" + mixList[aaa-1] + ">" + mixList[aaa-1] + "</a> and <a href=" + mix2 + "#" +mixList[bbb-1] + ">" + mixList[bbb-1] + "</a> and <a href=" + mix3 + "#" + mixList[ccc-1] + ">" + mixList[ccc-1] + "</a>.</p></center></td>"+
"\r  </tr>"+
"\r<tr><td height=\"25\" align=\"center\" background=\"http://www.deltamixers.com/img/bottom-bar.gif\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"white\">&copy; "+
"\r 2006 PBH Industries</td><br><br></td></tr></table></body>")
}}
