

/* This script makes sure that a product option selection is made if required. */


function add_cart_selection ( )
{
	var Selected = document.getElementById("ProductIDSelector").selectedIndex;
	valid = true;
		
		if (  Selected != null) //if Selected exists
		{
			if  ( Selected == 0) //if nothing selected
			{
				valid = false;
				$.validationEngine.buildPrompt('#ProductIDSelector','Please make a selection before adding to cart.','error');
			}
			
		}

		return valid;
}

function RemoveSelectorError()
{
	$.validationEngine.closePrompt('#ProductIDSelector');
}
