Estou usando essa function:
[code]function warningForm($position=‘fixed’, $str_title, $str_message, $int_left=100, $int_top=100, $int_width=400,$action=’’){
$str_possition = "position:".$position."; left:".$int_left."px; top:".$int_top."px; margin-left:0px; margin-top:0px; ";
if($action == 'RETURN') $str_possition = '';
$str_html = "
<table id='scwarningid' cellspacing='0' cellpading='0'
style='".$str_possition." border:1px solid #d1dceb; width:".$int_width."px; z-index:300; background-color:#FFFFFF' >
<tr>
<td background='../_lib/img/v5BluebgMenuHeader.png' style='font-size:12px; font-weight:bolder;' >
<a href='#' onclick=\"document.getElementById('scwarningid').style.display='none';\">
<img src='../_lib/img/scriptcase__NM__iconfails.png' border='0' /></a>
".$str_title."
</td>
</tr>
<tr>
<td style='font-size:12px; padding:10px'>".$str_message."
</td>
</tr>
</table>
";
if($action == 'RETURN') return $str_html;
else echo $str_html;
}[/code]