
// Kompatibilitaet
function fnShowMessage (icon, question, actions, captions, styles, pmInterface) {
	fnShowMessageN({symbol: icon, message: question, buttonActions: actions, buttonCaptions: captions, buttonStyles: styles, Interface: pmInterface});
}	

// zeigt Meldung an
function fnShowMessageN(pmParam) {
	var content = "";
	content += '<html><head>';
	content += '<link rel="stylesheet" type="text/css" href="/ib/site/generators/rStylesheet.php?Admin=1">';
	content += '<script language="JavaScript" src="/ib/core/libraries/rPrototype.js" type="text/javascript"></script>';
	content += '<script type="text/javascript" src="/ib/core/libraries_ext/tinymce/jscripts/tiny_mce/standalone_popup.js"></script>';
	content += '</head><body>';
	content += '<span class="admin">';

	content += '	<div>';
	content += '	<div style="width:320px">';
	content += '	<div style="height:110px; overflow:hidden">';
	content += '<table cellpadding="0" cellspacing="0" border="0" height="110" width="320">';
	content += '	<tr>';
	content += '	<td valign="middle" align="center" width="105"><IMG src="/ib/core/elements/messages/' + pmParam.symbol + '.png"></td>';
	content += '	<td valign="middle" width="215">' + pmParam.message + '</td>';
	content += '	</tr>';
	content += '	</table>';
	content += '	</div>';
	content += '<div>';
	content += '<div style="text-align:left; float:right">';
	for ( i=0; i < pmParam.buttonCaptions.length; i++) {
		content += '<div style="float:left; margin-left:10px;">';
		content += '<input type="button" class="' + (pmParam.buttonStyles && pmParam.buttonStyles[i]?pmParam.buttonStyles[i]:"ok") + 'Button" ';
		content += 'onclick="' + pmParam.buttonActions[i] + ';frameElement.IPopup.close();" id="footerButton' + i + '" value="' + pmParam.buttonCaptions[i] + '" /></div>';
	}
	content += '		<div style="clear:both"></div> ';
	content += '</div>';
	content += '<div style="clear:both"></div> ';
	content += '</div>';
	content += '</div>';
	content += "</span></body></html>";

	if(typeof(WM) != "undefined" && WM) {
		return WM.dialog({ // return ergaenzt 081121
			title: pmParam.title,
			content : content,
			width : 344,
			height : 162,
			
			dummy : 0
		}, {
				Interface : pmParam.Interface,
				caller : this,
				dummy : 0
		});
	}
}
