function checkForm(theForm) {
	var why="";
	why += checkField(theForm.name.value,"Name");
	why += checkField(theForm.addr1.value,"Postal Address");
	why += checkField(theForm.city.value,"City");
	why += checkField(theForm.state.value,"State/Province");
	why += checkField(theForm.zip.value,"Zip/Postal Code");
	why += checkField(theForm.country.value,"Country");
	why += checkField(theForm.phone.value,"Phone Number");
	why += checkField(theForm.email.value,"Email Address");
	why += checkField(theForm.model.value,"Computer Model/Year");
	why += checkField(theForm.os.value,"Operating System/Version");
	why += checkField(theForm.modem.value,"Modem Brand/Model");

	why += checkCheckboxes(theForm.mpw.checked + theForm.mpm.checked + theForm.pp.checked);
	if (why != "") {
		alert(why);
		return false;
	}
	return true;
}

function checkField(field,fieldname) {
	var error="";
	if (field == "") {
   		error = "You must enter a value into the " + fieldname +" field.\n";
	}
	return error;
}

function checkCheckboxes(field) {
	var error="";
	if (field == 0) {
   		error = "You must request at least one product.\n";
	}
	return error;
}

