/*
 * Coder: Mario Hartmann [mario@hartmann.net // http://mario.hartmann.net/]
 * Copyright: 2006, Photocolor Kreuzlingen AG
 * Original version: Javascipt
 * Original product name: Photocolor Kreuzlingen AG  -PhotoProducts-
 * Official site: http://www.Ifolor.ch
 * Last updated Date: 11-JAN-2006
 * Derivate works, translation in other languages
 * of this code must retain this copyright notice.
*/
// -----------------------------------------------------
//
//
function ShowDDMsgBox(ddMsgBoxId,ddMsgBoxBgId,returnVal)
{
Debug("ShowDDMsgBox:" + ddMsgBoxId);

	ddMsgBox = dd.elements[ddMsgBoxId];
	if (ddMsgBox || !ddMsgBox.visible)
	{
		Debug("ddMsgBox.visible:" + ddMsgBox.visible);
		ddMsgBoxBg = dd.elements[ddMsgBoxBgId];
		ddMsgBox.moveTo((dd.getWndW()/2)-(ddMsgBox.w/2),(dd.getWndH()/2) - (ddMsgBox.h/2)) ;
		HideSelectBoxes();
		if (this.HideActiveXControls!=null) {this.HideActiveXControls();}
		if (ddMsgBoxBg!= null)
		{
			ddMsgBoxBg.moveTo(0,0);
			ddMsgBoxBg.resizeTo(dd.getWndW(),dd.getWndH());
			ddMsgBoxBg.maximizeZ();
			ddMsgBoxBg.show();
		}
		ddMsgBox.maximizeZ();
		ddMsgBox.show();
	}
	if (returnVal){return returnVal;}else{return false;}
}
// -----------------------------------------------------
//
//
function HideDDMsgBox(ddMsgBoxId,ddMsgBoxBgId,returnVal)
{
Debug("HideDDMsgBox:" + ddMsgBoxId);
	ddMsgBox = dd.elements[ddMsgBoxId];
	if (ddMsgBox && ddMsgBox.visible)
	{
		ddMsgBoxBg = dd.elements[ddMsgBoxBgId];
		if (ddMsgBoxBg!= null) {ddMsgBoxBg.hide();}
		ReShowSelectBoxes();
		if(this.ReShowActiveXControls!=null){ this.ReShowActiveXControls();}
		ddMsgBox.hide();
	}
	if (returnVal){return returnVal;}else{return false;}
}
// -----------------------------------------------------
// end
// -----------------------------------------------------

