function checkColor(obj){
	var selectval = "";
	selectval = document.form1.imp_ink_color_only.value;
	
	// Loop through the options. It is looking for the checked value
	// and then working on validation 
	
	for(i=0;i < document.form1.imp_ink_color_only.length;i++){
		if(document.form1.imp_ink_color_only[i].checked){
			selectval = document.form1.imp_ink_color_only[i].value;
		}
	}
	
	if (((selectval == "Red"))||((selectval == "Black"))||((selectval == "Blue"))||((selectval == "Green"))||((selectval == "Brown"))||((selectval == "Purple"))||((selectval == "Wine"))||((selectval == "Earthy Green"))){
		
			productNumber = productNumber + 2; //updating the global variable -- this imprint add 2 products (card ink color set up and per card charge)
			document.form1.productid.value = addProdID(document.form1.productid.value, document.form1.UploadInkID.value );			
			
	}
	else {						
			productNumber = productNumber - 2; //updating the global variable -- this imprint deduct 2 products (card ink color set up and per card charge)
			document.form1.productid.value = remProdID(document.form1.productid.value, document.form1.UploadInkID.value );
	}			
	
	return true;
}




verse.checkColor = checkColor;


