//show_colorwheel(FunctionToExecuteAfterOkClicked,OptionalColorCurrentlySelected);
//******FunctionToExecuteAfterOkClicked = e.g. BgColorChanged(vWinColor,document.frm.hwvbg)
//******Here vWinColor will have new color name, and second paramter anything for example which caused the event.			
//******You need to make function BgColorChanged() in your current page
function show_colorwheel(funcparam)
{
	vWinColor = window.showModalDialog("ColorWheel.htm", "ColorWheel","dialogHeight:300px;dialogWidth=240px;status:0;help:0;center:1");
	//window.open("ColorWheel.htm", "ColorWheel","Height=300;Width=240;status=no,address=no");				
	if (vWinColor != null)
	{
		if (typeof(ColorWheelColorChanged) != "function" )					
			alert("Please make a function named 'ColorWheelColorChanged' in your page\nwhich will have first parameter as new color name, \nrest you can make your own");					
		else
			eval("ColorWheelColorChanged(vWinColor"+((funcparam==null)?"":","+funcparam)+")");										
	}
}

/* A Sample Color Wheel Color Changed function to be used in opener window
function ColorWheelColorChanged(newcolor,obj)
{
	obj.style.backgroundColor=newcolor;
	obj.value=newcolor;
}
*/