
function checkColor(color) {

	color = color.toLowerCase()

	var notice = document.getElementById('product-notice');
	var alertText = false;
	if(color.indexOf('acid yellow') > -1) {
		alertText = true;
		notice.innerHTML = "Notice: The colour Acid Yellow works best on a white background.";
	}
	if(color.indexOf('buttercup') > -1) {
		alertText = true;
		notice.innerHTML = "Notice: The colour Buttercup works best on a white background.";
	}
	if(color.indexOf('crimson') > -1) {
		alertText = true;
		notice.innerHTML = 'Notice: The colour Crimson requires our special <a href="http://www.ecosorganicpaints.co.uk/store/paints-for-wood/basecoat/cat_38.html">basecoat</a> - please be sure to include this with your order';
	}
	if(color.indexOf('lime') > -1) {
		alertText = true;
		notice.innerHTML = "Notice: The colour Lime works best on a white background.";
	}
	if(color.indexOf('signal') > -1) {
		alertText = true;
		notice.innerHTML = 'Notice: The colour Signal requires our special <a href="http://www.ecosorganicpaints.co.uk/store/paints-for-wood/basecoat/cat_38.html">basecoat</a> - please be sure to include this with your order';
	}
	if(color.indexOf('tango') > -1) {
		alertText = true;
		notice.innerHTML = "Notice: The colour Tango works best on a white background.";
	}
	if(color.indexOf('colour matched') > -1) {
		alertText = true;
		notice.innerHTML = 'Notice: You will need to supply a Colour-Swatch, a Reference Number or similar. You must also purchase a <a href="/store/testers-charts-etc/colour-matching-service/prod_4.html" title="View Colour Matching Product">Colour Match</a> unless we have already matched this colour for you.';
	}
	if(!alertText) {
		notice.style.visibility = "hidden";
		notice.innerHTML = "";
	} else {
		notice.style.visibility = "visible";
	}
}