function checkbox_checker()
{


var val = "false";
for(var i=0; i< document.form1.elements["contacts[]"].length;i++){
if(document.form1.elements["contacts[]"][i].checked == true)
val = "true";
}


if (val == "false")
{
// If there were less then selections made display an alert box
alert("Please select at least one legislator. \n")
return (false);
}

/*

for(var i=0; i< document.form1.elements['contacts[]'].length;i++){
if(document.form1.elements['contacts[]'][i].checked)
val = document.form1.elements['contacts[]'][i].value;
}




// set var checkbox_choices to zero

var checkbox_choices = 0;
var checkbox_name = getElementById("Legislators");



// Loop from zero to the one minus the number of checkbox button selections
for (counter = 0; counter < checkbox_form.contacts.length; counter++)
{

// If a checkbox has been selected it will return true
// (If not it will return false)
if (checkbox_form.checkbox[counter].checked)
{ checkbox_choices = checkbox_choices + 1; }

}


if (checkbox_choices > 3000 )
{
// If there were more than three selections made display an alert box
msg="You're limited to only three selections.\n"
msg=msg + "You have made " + checkbox_choices + " selections.\n"
msg=msg + "Please remove " + (checkbox_choices-3) + " selection(s)."
alert(msg)
return (false);
}


if (checkbox_choices < 1 )
{
// If there were less then selections made display an alert box
alert("Please make at least one selection. \n" + checkbox_choices + " entered so far.")
return (false);
}
*/
}