Please provide me a link to the page you use this on:<br><br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br><br><html><br><head><br> <title>Untitled</title><br></head><br><br><script><br>var totalyes //global variable to store total yesses<br><br>function checkRadios()<br>{<br> var yeschex=0;var nochex=0<br> var frm = document.darg.elements //all the checkboxes<br> var len = frm.length //how many there are<br> for(var i=0;i<len;i++)<br> {if(frm<i>.checked){if(frm<i>.value="y"

{yeschex++}}}<br> return yeschex<br>}<br><br>function testTotal(howmany)<br>{<br> if(howmany < 3){mypop = window.open("page1.htm","winny","width=300,height=400"

}<br> if(howmany > 3 && <=6){mypop = window.open("page2.htm","winny","width=300,height=400"

}<br> if(howmany >= 7){mypop = window.open("page3.htm","winny","width=300,height=400"

}<br>}<br><br></script><br><br><body><br><form name="darg"><br>Do you Like...<br><br><br>Root Beer?<input type="radio" name="rootbeer" value="y">Yes<br><input type="radio" name="rootbeer" value="n">No<br><br>Flying?<input type="radio" name="flying" value="y">Yes<br><input type="radio" name="flying" value="n">No<br><br>Aliens?<input type="radio" name="aliens" value="y">Yes<br><input type="radio" name="aliens" value="n">No<br></form><br><form><input type="button" onClick="totalyes = checkRadios();testTotal(totalyes)"></form><br></body><br></html>