		function mgmpopup1(mylink, windowname, x, y){
			var href;
			var win = null;
			var winproperties = null;
			var sbars = '0';
			if (!window.focus){
				return true;
			}
			if (typeof(mylink) == 'string'){
				href = mylink;
			} else {
				href = mylink.href;
			}
			winleft = Math.round((screen.availWidth - x) * 0.5);
			wintop = Math.round((screen.availHeight - y) * 0.5);
			if (winleft < 0){
				winleft = 0; x = screen.availWidth -10; sbars = 1;
			}
			if (wintop < 0){
				wintop = 0; y = screen.availHeight - 30; sbars = 1;
			}
			winproperties = 'height='+y+'px, width='+x+'px, top='+wintop+'px, left='+winleft+'px,  scrollbars='+sbars+', resizable=0, toolbar=0, menubar=0, status=0, titlebar=1';
			
			win = window.open('', '', winproperties);
			win.document.open("text/html");
			win.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" \r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
			win.document.writeln();
			win.document.write('<ht' + 'ml xmlns="http://www.w3.org/1999/xhtml">');
			win.document.writeln();
			win.document.write('  <he' + 'ad>\r\n    <ti' + 'tle>'+windowname+'<'+'/ti' + 'tle>');
			win.document.writeln();
			win.document.write('  <'+'/he' + 'ad>');
			win.document.writeln();
			win.document.write('  <bo' + 'dy style="margin: 0 auto" onBlur="window.close()">');
			win.document.writeln();
			win.document.write('    <img src="'+mylink+'" alt="'+windowname+'" title="'+windowname+'" border="0" />');
			win.document.writeln();
			win.document.write('  <'+'/bo' + 'dy>\r\n<'+'/html>');
			win.document.close();
			if (parseInt(navigator.appVersion) >= 4){
				win.window.focus();
			}			
			return false;
		}
