// UPDATE DISPLAY:
function update_sample(sample, color) {
	sample.style.backgroundColor = '#'+color;
}
// PROCESS INPUT:
function submit_action() {
	var mixer = document.mixer;
	var r,g,b; var c1,c2,c3,c4,c5,c6,c7,c8;
	r=mixer.high_r.checked; g=mixer.high_g.checked; b=mixer.high_b.checked;
	c1=random_color(true,r,g,b); c2=random_color(true,r,g,b);
	c3=random_color(true,r,g,b); c4=random_color(true,r,g,b);
	c5=random_color(false,r,g,b); c6=random_color(false,r,g,b);
	c7=random_color(false,r,g,b); c8=random_color(false,r,g,b);
	update_sample(mixer.s1,c1); mixer.r1.value=c1;
	update_sample(mixer.s2,c2); mixer.r2.value=c2;
	update_sample(mixer.s3,c3); mixer.r3.value=c3;
	update_sample(mixer.s4,c4); mixer.r4.value=c4;
	update_sample(mixer.s5,c5); mixer.r5.value=c5;
	update_sample(mixer.s6,c6); mixer.r6.value=c6;
	update_sample(mixer.s7,c7); mixer.r7.value=c7;
	update_sample(mixer.s8,c8); mixer.r8.value=c8;
}
