/*
	
*/


colortable="#000000,#00007F,#0000FF,#007F00,#007F7F,#007FFF,#00FF00,#00FF7F,#00FFFF,#7F0000,#7F007F,#7F00FF,#7F7F00,#7F7F7F,#7F7FFF,#7FFF00,#7FFF7F,#7FFFFF,#FF0000,#FF007F,#FF00FF,#FF7F00,#FF7F7F,#FF7FFF,#FFFF00,#FFFF7F,#FFFFFF";

function writeColorTable() {
	colors = colortable.split(",");
	
	for(var i = 0 ; i < colors.length ; i++) {
		var rgb = colors[i];
		document.write(	"<td bgColor=\"" + rgb + "\">" +
						"<a href=\"javascript:setSelectedColor();\" " +
						"onMouseOver=\'setTmpColor(\"" + rgb + "\");\'>" +
						"&nbsp;&nbsp;&nbsp;</a></td>") ;
	}
}
function setSelectedColor() {
  	document.f.hexcolor.value=document.f.tmp.value;
	document.getElementById("currColor").bgColor=document.f.tmp.value;
}
function setTmpColor( color ) {
  document.f.tmp.value = color;
}
function setCustomColor() {
	document.getElementById("currColor").bgColor=document.f.hexcolor.value;
}

