Question : Need help with form that uses radio & check boxes with JS

Hello, I created a quiz to determine a color result for someone's personality.
http://www.fbquizs.com

The first question uses radio buttons but all of the rest use check boxes.  How do I also include check boxes in my code??  Right now, it only is written for radio buttons.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
var red=0, purple=0, blue=0, green=0, pink=0, orange=0, black=0, yellow=0, brown=0, grey=0;
var ten=0, twenty=0, thirty=0, forty=0, fifty=0, sixty=0, seventy=0, eighty=0;
var colors = new Array(red, purple, blue, green, pink, orange, black, yellow, brown, grey);
var colorNames = new Array("red","purple","blue","green","pink","orange","black","yellow","brown","grey");
var groups = new Array(ten, twenty, thirty, forty, fifty, sixty, seventy, eighty);
var valid = false;
var alertStr = '';

function DisplayFormValues() { 
	var elem = document.getElementById('colors').elements;
	for(var i = 0; i < elem.length; i++) {        
		if (elem[i].type == "radio") {
			if (elem[i].checked) {
				var radioValue = elem[i].value 
				if (radioValue.indexOf('~') != -1) {
					var valueArray = radioValue.split('~');
					for(var j = 0; j < valueArray.length; j++) {
						colors[parseInt(valueArray[j])] ++;
					}
				} else {
					colors[parseInt(radioValue)] ++;
				}
			} 
		}
	}
	DisplayResult();
} 


function DisplayResult() {
    var highest = 0;
    var highestName = '';  
    for (x = 0; x < colors.length; x++) { 
        if (colors[x] > highest) {
            highest = colors[x];
            highestName = colorNames[x];
        }
    }
    window.location.href = "./" + "Color/" + highestName + ".html";
}

Answer : Need help with form that uses radio & check boxes with JS

Yes, in fact the machine I am using has access to all of our subnets. If i take the network cable out of port 1, which is VLAN5, and plug it into port 2 which is on the default VLAN, I can connect just fine. I am just unable to connect to the management console if the cable is in port 1
Random Solutions  
 
programming4us programming4us