function launchwin(winurl,winname,winfeatures)
{
	if (winname == null) {
		winname = 'window';
	}
	if (winfeatures == null) {
		winfeatures = 'height=500,width=500,resizable=yes,scrollbars=yes,toolbar=yes';
	}
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
}
