<!--
var theColour = "";
var initcol = "";

function showColor(val)
{
document.colorform.hexval.value = val;
theColour = val;
}

function keepColor()
{
document.colorform.keepcolour.value = theColour;
}

function initpicker()
{
if ( initcol )
{
document.colorform.keepcolour.value = initcol;
}
}

function endwrite()
{
if ( opener.document.theAdminForm.initformval.value )
{
theColour = document.colorform.keepcolour.value;

eval("opener.document.theAdminForm.f"+opener.document.theAdminForm.initformval.value+".value = theColour");

itm = my_openergetbyid( opener.document.theAdminForm.initformval.value );

if ( itm )
{
itm.style.backgroundColor = theColour;
}

}
}

function my_openergetbyid(id)
{
itm = null;

if (opener.document.getElementById)
{
itm = opener.document.getElementById(id);
}
else if (opener.document.all)
{
itm = opener.document.all[id];
}
else if (opener.document.layers)
{
itm = opener.document.layers[id];
}

return itm;
}
//-->
