function formchkr (frm) {

	//return true;

	var counter=1;
	var alertoutput = "Please select the following before adding to your cart:\n\n";
	
	if ($("#quantity-box",frm).length>0) {
		$("select",frm).each(function() {
			if (this.selectedIndex==0 && this.options[0].value.substr(0,6)=="Select") {
				
				if (this.parentNode.innerHTML.indexOf("ey-select4711.png")==-1) {
					this.style.border = "1px solid #ff0000";
$(this.parentNode).append("<span class=select style=\"vertical-align:top\"><img src='/lib/thehumansolution/ey-select4711.png' /></span>");
				}
				
				alertoutput += counter + ". " + this.name.replace(/vwattr\d+_/,"") + "\n";
				counter++;0
				
			} else {
				this.style.border = "0px solid #ff0000";
				if (this.parentNode.innerHTML.indexOf("ey-select4711.png")!=-1) {
					$("span.select",this.parentNode).remove();
				}
			}
			
		});
};
	
	$("input.ma-qty-box",frm).each(function() {
		if (this.value>0) {
			$("select",this.parentNode.parentNode).each(function() {
				
				if (this.selectedIndex==0 && this.options[0].value.substr(0,6)=="Select") {
				
					if (this.parentNode.innerHTML.indexOf("ey-select4711.png")==-1) {
						this.style.border = "1px solid #ff0000";
						$(this.parentNode).append("<span class=select style=\"vertical-align:top\"><img src='/lib/thehumnsolution/ey-select4711.png' /></span>");
					}
					alertoutput += counter + ". " + this.name.replace(/vwattr\d+_/,"") + "\n";
					counter++;
					
				} else {
					this.style.border = "0px solid #ff0000";
					if (this.parentNode.innerHTML.indexOf("ey-select4711.png")!=-1) {
						$("span.select",this.parentNode).remove();
					}
				}
			});
		}
	});
	
	

	/*
	var selects = frm.getElementsByTagName("select");
	var counter = 0;
	var alertoutput = "Please select the following before adding to your cart:\n\n";
	
	for (var i=0; i<selects.length; i++) {
		//added regex to strip the '$'
		selects[i].value.replace(/\$/,"");
		
		selects[i].parentNode.parentNode.childNodes[0].innerHTML = selects[i].parentNode.parentNode.childNodes[0].innerHTML.replace(/\,"");
		selects[i].style.border = "1px solid #C0C0BE";
		if (selects[i].parentNode.childNodes[1]) {
			selects[i].parentNode.removeChild(selects[i].parentNode.childNodes[1]);
		}
		var itemnum = selects[i].name.match(/\d+/);
		if (selects[i].value.match(/^Select/) && itemnum == 0) {
			counter++;
			alertoutput += counter + ". " + selects[i].name.replace(/vwattr\d+_/,"") + "\n";
			selects[i].parentNode.parentNode.childNodes[0].innerHTML = "<span>*</span>" + selects[i].parentNode.parentNode.childNodes[0].innerHTML;
			selects[i].style.border = "2px solid #ff0000";
			var js = document.createElement("span");
			js.innerHTML = "<img src='http://lib.store.yahoo.net/lib/thehumansolution/select.gif' />";
			selects[i].parentNode.appendChild(js);
		}
	}	
	*/

	if (counter > 1) {
		alert(alertoutput);
		return false;
	}
	else
		return true;
}






