<!-- Begin
function checkCheckbox (f,name,minimum,maximum) {
	var checked = 0, e, i = 0
	while (e = f.elements[i++]) {if (e.type == 'checkbox' && e.className == name && e.checked) checked++}
	if (checked < minimum) {
		alert("You must select a minimum of " + minimum + " phones to compare");
		return minimum <= checked
	}
	if (checked > maximum) {
		alert("You can only select a maximum of " + maximum + " phones to compare");
		return maximum >= checked
	}
		return
}

function check (f) {
	return checkCheckbox (f,"compare_phones",2,5)
}
//  End -->
