function popupWindow(url)
{
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

function popupWindowPrint(url)
{
	var height=0; var width=0;
	if (self.screen) {
	width = screen.width
	height = screen.height
	}
	else if (self.java) {
	var jkit = java.awt.Toolkit.getDefaultToolkit();
	var scrsize = jkit.getScreenSize();
	width = scrsize.width;
	height = scrsize.height;
	}
	w=width/2-400;
	str='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=1000,screenX=150,screenY=150,top=150,left=' + w;
	window.open(url,'popupWindow',str)
}

function ShowColor(color_id)
{
    focusWindow=window.open('/show_color/?color_id='+color_id, 'color', 'left=150,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=300,height=250');
    if (getAppVersion()) focusWindow.focus();
	return false;
}

function getAppVersion()
{
    appname= navigator.appName;
    appversion = navigator.appVersion;
    majorver = appversion.substring(0, 1);
    if( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;
    if( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
	if( appname == "Opera" ) return 1;
	return 0;
}
