//
// Ahmet Yetgin - Cem Bozkurt
// Mor Yazilim, 2002
//

function popWindow(url, width, height, windowName, toolbar, scrollbars, location, statusbar, menubar, resizeable)
	{
			//get centercoords
			var left=(screen.width-width)/2;
			var top=(screen.height-height)/2;
				
		//if (scope=='Internal') url = '/servlet/mmexec.DisplayPage?pg=' + url;
		if ( (url.substring(0,4) != 'http') && (url!='#') ) url = '/servlet/mmexec.DisplayPage?pg=' + url;
		win=window.open(url,windowName,'toolbar='+((toolbar==true) ? '1':'0')+',scrollbars='+((scrollbars==true) ? '1':'0')+',location='+((location==true) ? '1':'0')+',status='+((statusbar==true) ? '1':'0')+',menubar='+((menubar==true) ? '1':'0')+',resizable='+((resizeable==true) ? '1':'0')+',width='+width+',height='+height+',left='+left+',top='+top);
	}