addEvent(window, 'load', Enq_initialise, false);

function Enq_initialise(){
	
	// Set Event-handlers
	addEvent($('printNumColours_1'),'change',Enq_handleChangeNumColours, false);
	addEvent($('printNumColours_2'),'change',Enq_handleChangeNumColours, false);
	
	// Do Initial Run
	Enq_changeNumColours(1);
	Enq_changeNumColours(2);
	
} // end Enq_initialise

function Enq_handleChangeNumColours(e){
if(!e) var e = window.event;
if(e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;

	//targ.value;
	
	// Which set are we dealing with
	myString = targ.name;
	var myBits = myString.split("_");
	var index = myBits.pop();


	Enq_changeNumColours(index);

} // end Enq_handleChangeNumColours

function Enq_changeNumColours(index){

	theValue = $('printNumColours_' + index).value;

	for(var i = 1;i <= 4;i++){
		if(theValue >= i){
			$('ColourHolder_' + index + '_' + i).style.display = "block";
		}else{
			$('ColourHolder_' + index + '_' + i).style.display = "none";
		}
	}

} // end Enq_changeNumColours