Sample Code
<script language=javascript1.1>
// return value will be here
var colorhex = '';
function pop() {
var colorwin = open("","picker",
"width=630,height=440,status=no,directories=no," +
"location=no,menubar=no,scrollbars=no,toolbar=no");
if (colorwin.opener == null) newin.opener = self;
colorwin.document.close();
colorwin.focus();
colorwin.location.href = './p_gen.cgi' +
// the next line supplies the initial color
// value to the picker and may be omitted
'?hex=' + document.forms.color.hex.value;
return false;
}
</script>