//---------------------------------------------------
//    Title: dialog javascripts
//
//    Copyright 2003 Khoosystems Ltd - all rights reserved
//    
//    History:
//	  24/02/03: Release	
//----------------------------------------------------
//
// open the selector and update hex and the colour of the swatch
// 


function launchCenter(url, name, height, width, str) {
	str += ",height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		
		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;
		
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}

	return window.open(url, name, str);
}
