function validatesongs(theobj) { 
	theform = theobj.form;
	group = theform.elements.songmessage;
	theform.songmessages.value = "";
	thecount = 0;
	for(var i = 0, n = group.length; i < n; ++i) {
		if('checkbox' == group[i].type || 'radio' == group[i].type) {
			if (group[i].checked) {
				thecount = thecount + 1;
				if (thecount <= 2) {
				theform.songmessages.value = theform.songmessages.value + '<br>' + group[i].value;
				}
			}
		}	
	}
	if (thecount > 2)
	{
		theobj.checked = false;
		alert("You Can Only Select 2 Songs.");
		return false;
	}
	return true;
}


function checkForm(theform) { 
		if (theform.name.value == "") {
			alert("Please enter your name."); 
			theform.name.focus();
			return false;
		}
		if (theform.company.value == "") {
			alert("Please enter your company name."); 
			theform.company.focus();
			return false;
		}
		if (theform.phone.value == "") {
			alert("Please enter your phone number."); 
			theform.phone.focus();
			return false;
		}
		if (theform.email.value == "") {
			alert("Please enter your email address."); 
			theform.email.focus();
			return false;
		}
		return true;
}
function checkGrabber(theform) { 
		if (theform.name.value == "") {
			alert("Please enter your name."); 
			theform.name.focus();
			return false;
		}
		if (theform.company.value == "") {
			alert("Please enter your Store Location name."); 
			theform.company.focus();
			return false;
		}
		if (theform.phone.value == "") {
			alert("Please enter your phone number."); 
			theform.phone.focus();
			return false;
		}
		if (theform.email.value == "") {
			alert("Please enter your email address."); 
			theform.email.focus();
			return false;
		}
		return true;
}

	function validategrabbers(theobj) { 
	var theform = theobj.form;
	var group = theform.elements.grabbermessage;
	theform.grabbermessages.value = "";
	thecount = 0;
	for(var i = 0, n = group.length; i < n; ++i) {
		if('checkbox' == group[i].type || 'radio' == group[i].type) {
			if (group[i].checked) {
				thecount = thecount + 1;
				if (thecount <= 6) {
				theform.grabbermessages.value = theform.grabbermessages.value + '<br />' + group[i].value;
				}
			}
		}	
	}
	if (thecount > 6)
	{
		theobj.checked = false;
		alert("You Can Only Select 6 Grabber Messages.");
		return false;
	}
	return true;
	}


