function openDialogWindowOnTop(url, width, height, name, isModal)
{	var win = new Window({className: "alphacube", title: name, width:width, height:height, url: url, showEffectOptions: {duration:1.5}}); 
	
	new_window = top.window.open(url,'name',"width=800,height=500,left=300,top=10,scrollbars=yes");
	
}

function openDialogWindow(url, width, height, name, isModal)
{	
	var isIE = checkBrowserName('MSIE');
	//alert("isIE="+isIE)

	var win = new Window({className: "alphacube", title: name, width:width, height:height, url: url, showEffectOptions: {duration:1.5}}); 
	var istWindowModal = false;
	if (isIE)
	{	var new_window = top.window.open(url,'name',"width=800,height=500,left=300,top=10,scrollbars=yes");
		new_window.focus();
	}
	else
	{
		win.showCenter(isModal); 
		win.setZIndex(1111);
	}
}





// closes the Alpha cube from inside
function closeDialogWindow() {
	if (opener) { // Es ist kein Alphacube 
		self.close();
	}	
	else {	
		//parent.Windows.close(self.name.substring(0, self.name.indexOf("_content")));
		parent.Windows.getFocusedWindow().close();
	}
}
