
function displayHelp(url, alignment)
{
	if (alignment == "right") {
		// resize main window to 800
		if (screen.availWidth > 1000) {
			mainWidth = 800;
		} else {
			mainWidth = 600;
		}	
		window.resizeTo(mainWidth, screen.availHeight);
		window.moveTo(0, 0);
		helpWidth = screen.availWidth - mainWidth;
		helpHeight = screen.availHeight;
		helpXpos = mainWidth;
		helpYpos = 0;
	} else {
		helpWidth = 500;
		helpHeight = 250;
		helpXpos = 200;
		helpYpos = 200;
	}		

	helpWin = window.open(url, 'helpWin', 'resizable=1, scrollbars=1, dialog=1, titlebar=0, statusbar=0, status=0' );
	helpWin.resizeTo(helpWidth, helpHeight);
	helpWin.moveTo(helpXpos, helpYpos);
	helpWin.focus();
}


