function checkbox_checker()
{
// set var checkbox_choices to zero
var checker = 0;
// Loop from zero to the one minus the number of checkbox button selections
for (counter = 0; counter < formname.checkbox.length; counter++)
{
// If a checkbox has been selected it will return true
// (If not it will return false)
if (formname.checkbox[counter].checked)
{ checker = checker + 1; }

}
if (checker > 3 )
{
// 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 " + checker + " selections.\n"
msg=msg + "Please remove " + (checker-3) + " selection(s)."
alert(msg)
return false
}

if (checker < 1 )
{
// If there were less then selections made display an alert box
alert("Please make up to THREE selections. \n" + checker + " entered so far.")
return false
}
else
	return true

}