When I tried to get to the vote site to cast my vote below is what appeared in Netscape. I exited, restarted the browser and the vote form finally appeared when I got back to the site, but a prompt now appears saying something about no more or less than three votes even though I selected three.
Also, aren't there more than 11 total entries? (check out the value of TOTALENTRIES below).
Do I have to use Internet Explorer instead?
Well, good luck to everyone!! Robert
function validate(frm) {
if (frm.namefield.value.length < 1) {
alert("Please enter your name.");
return false;
}
if (frm.emailfield.value.length < 5) { //There are a minimum of 5 charaters in an email address
alert("Please enter your email address.");
return false;
}
var emailaddress = "mailto:
[email protected]"; //Where the form data will be sent
var element;
var totalentries = 11; //total number of entries
var totalvotes = 0; //vote counter
var body = emailaddress + "?subject=F1 voting&body=Name:" + frm.namefield.value + "\n" + "Email:" + frm.emailfield.value + "\n" + "Selections: ";
for (var cnt = 2; cnt < (totalentries + 1); cnt++){
element = frm[cnt];
if (element.type == "checkbox"){
if (element.checked == true){
body = body + element.value + "\n";
totalvotes++;
}
}
}
if (totalvotes == 3){
frm.action = body;
}
else{
alert("You must select 3 entries.\nNo More, No Less.");
return false;
}
return true;
}