
function clickedColor(anObj,optInv) {
	var color = anObj; 
	if ((document.all) && document.all[anObj]) {
		// alert('in ie4 or above');
		//Prego Planner
		if (anObj != 'zebra' && document.all('zebra')) document.all['zebra'].style.visibility = 'visible';
		if (anObj != 'dressy' && document.all('dressy')) document.all['dressy'].style.visibility = 'visible';
		if (anObj != 'brown' && document.all('brown')) document.all['brown'].style.visibility = 'visible';
		// Tot Tags
		if (anObj != 'kaleidoscopeblue' && document.all('kaleidoscopeblue')) document.all['kaleidoscopeblue'].style.visibility = 'visible';
		if (anObj != 'roundabout' && document.all('roundabout')) document.all['roundabout'].style.visibility = 'visible';
		if (anObj != 'wonderful' && document.all('wonderful')) document.all['wonderful'].style.visibility = 'visible';


		document.all[anObj].style.visibility = 'visible';
		} // end if document.all is recognized
	else {
		if (document.getElementById(anObj)) {
			// Netscape 6 & IE5, access the text's ID, then use the property innerHTML
			// alert('getElementById');
			//Prego Planner
			if (anObj != 'zebra' && document.getElementById('zebra')) document.getElementById('zebra').style.visibility = 'visible';
			if (anObj != 'dressy' && document.getElementById('dressy')) document.getElementById('dressy').style.visibility = 'visible';
			if (anObj != 'brown' && document.getElementById('brown')) document.getElementById('brown').style.visibility = 'visible';
			// Tot Tags
			if (anObj != 'kaleidoscopeblue' && document.getElementById('kaleidoscopeblue')) document.getElementById('kaleidoscopeblue').style.visibility = 'visible';
			if (anObj != 'roundabout' && document.getElementById('roundabout')) document.getElementById('roundabout').style.visibility = 'visible';
			if (anObj != 'wonderful' && document.getElementById('wonderful')) document.getElementById('wonderful').style.visibility = 'visible';
		
			document.getElementById(anObj).style.visibility = 'visible';
		} // end if getElementById is recognized	
	}
	
	// Internet Explorer 4 or above
	if ((document.all) && document.all.color_label) {
		// alert('in ie4 or above');
		document.all.color_label.innerHTML = color;
		//document.all.color_label.className = color + "_label";
		} // end if document.all is recognized
	else {
		if (document.getElementById("color_label")) {
			// Netscape 6 & IE5, access the text's ID, then use the property innerHTML
			document.getElementById("color_label").innerHTML = color;
			//document.getElementById("color_label").className = color + "_label";
		}  // end if getElementById is recognized	
	}
	document.forms["addToBasket"].selectOptions.value = color;	
	return;
	alert(anObj);
}

function prodOptionImage(imageFile) {	
	var prodPageImage = document.images["prodpage_img"];	
	
	if (prodPageImage) 	
		prodPageImage.src = "./img/products/"  +  imageFile;

	return;
}


