// JavaScript Document
function showImage(image, width, height) {
	var w = screen.availWidth||screen.width
	var h = screen.availHeight||screen.height
	if (width + 60 > w) {
		width = (w - 60);
	}
	else {
		width += 40;
	}
	if (height + 80 > h) {
		height = (h - 80);
	}
	else {
		height += 60
	}
	win = window.open("", "bigImage", "scrollbars=yes, menubar=no, location=no, toolbar=no" + ", width=" + width + ", height=" + height);
	win.moveTo(0,0);
	win.focus();
	win.document.writeln("<html>");
	win.document.writeln("<head><LINK REL=StyleSheet HREF=\"mgalign_styles.css\" TYPE=\"text/css\"></head>");
	win.document.writeln("<body>");
	win.document.writeln("<table align='center' border='0' cellspacing='0' cellpadding='0'>");
	win.document.writeln("<tr><td><img border='0' src='mgalign_images/help_images/" + image + "'></td></tr>");
	win.document.writeln("<tr><td align='center'>&nbsp;<br><a class='imageButtons' href='javascript:void(0);' onClick=\"self.close();\">&nbsp;Close&nbsp;</a></td></tr>");
	win.document.writeln("</table>");
	win.document.writeln("</body>");
	win.document.writeln("</html>");
	win.document.close();
}

function showHelpImage(image, width, height) {
	var w = screen.availWidth||screen.width
	var h = screen.availHeight||screen.height
	if (width + 60 > w) {
		width = (w - 60);
	}
	else {
		width += 40;
	}
	if (height + 80 > h) {
		height = (h - 80);
	}
	else {
		height += 60
	}
	win = window.open("", "bigImage", "scrollbars=yes, menubar=no, location=no, toolbar=no" + ", width=" + width + ", height=" + height);
	win.moveTo(0,0);
	win.focus();
	win.document.writeln("<html>");
	win.document.writeln("<head><LINK REL=StyleSheet HREF=\"mgalign_styles.css\" TYPE=\"text/css\"></head>");
	win.document.writeln("<body>");
	win.document.writeln("<table align='center' border='0' cellspacing='0' cellpadding='0'>");
	win.document.writeln("<tr><td><img border='0' src='help_images/" + image + "'></td></tr>");
	win.document.writeln("<tr><td align='center'>&nbsp;<br><a class='imageButtons' href='javascript:void(0);' onClick=\"self.close();\">&nbsp;Close&nbsp;</a></td></tr>");
	win.document.writeln("</table>");
	win.document.writeln("</body>");
	win.document.writeln("</html>");
	win.document.close();
}

function showAnyImage(image, width, height) {
	var w = screen.availWidth||screen.width
	var h = screen.availHeight||screen.height
	if (width + 60 > w) {
		width = (w - 60);
	}
	else {
		width += 40;
	}
	if (height + 80 > h) {
		height = (h - 80);
	}
	else {
		height += 60
	}
	win = window.open("", "bigImage", "scrollbars=yes, menubar=no, location=no, toolbar=no" + ", width=" + width + ", height=" + height);
	win.moveTo(0,0);
	win.focus();
	win.document.writeln("<html>");
	win.document.writeln("<head><LINK REL=StyleSheet HREF=\"mgalign_styles.css\" TYPE=\"text/css\"></head>");
	win.document.writeln("<body>");
	win.document.writeln("<table align='center' border='0' cellspacing='0' cellpadding='0'>");
	win.document.writeln("<tr><td><img border='0' src='mgalign_images/" + image + "'></td></tr>");
	win.document.writeln("<tr><td align='center'>&nbsp;<br><a class='imageButtons' href='javascript:void(0);' onClick=\"self.close();\">&nbsp;Close&nbsp;</a></td></tr>");
	win.document.writeln("</table>");
	win.document.writeln("</body>");
	win.document.writeln("</html>");
	win.document.close();
}