// update the colour swatch
function update_swatch()
{
// update the colour swatch
function update_swatch()
{
+ document.getElementById("hexinputf").value = document.getElementById("hexinputf").value.toUpperCase();
document.getElementById("swatch").style.backgroundColor = "rgb(" + fields['red'] + ", " + fields['green'] + ", " + fields['blue'] + ")";
document.getElementById("swatch-red").style.backgroundColor = "rgb(" + fields['red'] + ", 0, 0)";
document.getElementById("swatch-green").style.backgroundColor = "rgb(0, " + fields['green'] + ", 0)";
document.getElementById("swatch").style.backgroundColor = "rgb(" + fields['red'] + ", " + fields['green'] + ", " + fields['blue'] + ")";
document.getElementById("swatch-red").style.backgroundColor = "rgb(" + fields['red'] + ", 0, 0)";
document.getElementById("swatch-green").style.backgroundColor = "rgb(0, " + fields['green'] + ", 0)";