// JavaScript Document

function MM_popup(theURL,winName,features,myWidth,myHeight,isCenter) { //v2.0
  
	var ald_win = null;
	var settings;
	settings = 'width='+myWidth+',height='+myHeight;
	
	if(isCenter)		// Position in center of window
	{
		var myLeft = (screen.width) ? (screen.width-myWidth)/2: 0;
		var myTop = (screen.height) ? (screen.height-myHeight) : 0;
		
		settings +=',left='+myLeft+',top='+myTop;
	}
	
	if(features!='') settings +=','+features;		// add features passed as argument
	ald_win = window.open(theURL,winName,settings);

}