function OpenEditorWindow(windowname, loc)
{
	hgt   = window.screen.height-150;
	setup = 'width=' + (window.screen.width/2) + ',height=' + hgt + ',resizable=yes,toolbar=no,scrollbars=yes';
	pop   = window.open(loc,windowname,setup);
	pop.moveTo((window.screen.width/2)-20, 25);
	pop.focus();
	return true
}

function OpenHelpWindow(loc)
{
	hgt   = window.screen.height/3;
	setup = 'width=' + (window.screen.width/3) + ',height=' + hgt + ',resizable=yes,toolbar=no,scrollbars=yes';
	pop   = window.open(loc,'help',setup);
	pop.moveTo(20, 25);
	pop.focus();
	return true
}

function OpenMessageWindow(loc)
{
	hgt   = window.screen.height/4;
	wid   = window.screen.width/4;
	setup = 'width=' + wid + ',height=' + hgt + ',resizable=yes,toolbar=no,scrollbars=yes';
	pop   = window.open(loc,'message',setup);
	pop.moveTo((window.screen.width/2)-(wid/2), (window.screen.height/2)-(hgt/2));
	pop.focus();
	return true
}

function OpenHtmlEditorWindow(loc)
{
	hgt   = window.screen.height/2;
	wid   = window.screen.width/2;
	setup = 'width=' + wid + ',height=' + hgt + ',resizable=yes,toolbar=no,scrollbars=yes';
	pop   = window.open(loc,'htmleditor',setup);
	pop.moveTo((window.screen.width/2)-(wid/2), (window.screen.height/2)-(hgt/2));
	pop.focus();
	return true
}
