function msgWithBorder(id,msgStr,msgType,marginTop,marginBottom,multiLineMsg){
	
	if( msgType=='error' ){
		var str = "<table width='100%' border='0' align='left' cellpadding='0' cellspacing='0' style='"+marginTop+"px; margin-bottom: "+marginBottom+"px;' id='tblSuccErr' class='err_margen'><tr><td width='3' height='3'><img src='images/err_tl.gif' width='3' height='3' /></td><td height='3' background='images/err_t.gif'><img src='images/err_t.gif' width='2' height='3' /></td><td width='3' height='3'><img src='images/err_tr.gif' width='3' height='3' /></td></tr><tr><td width='3' height='3' background='images/err_l.gif'><img src='images/err_l.gif' width='3' height='2' /></td><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='3%'><img src='images/16_warn.gif' width='16' height='16' hspace='3' vspace='3' /></td><td width='94%' valign='middle' class='maroon12'>&#160;&#160;"+msgStr+"</td><td width='3%' align='right' valign='middle' class='maroon12'><a href='javascript:;' onClick=\"document.getElementById('"+id+"').innerHTML=''\"><img src='images/informationbar_iconclose.gif' border='0' hspace='4' style='margin-top: 4px;' /></a></td></tr></table></td><td width='3' background='images/err_r.gif'><img src='images/err_r.gif' width='3' height='2' /></td></tr><tr><td width='3' height='3'><img src='images/err_bl.gif' width='3' height='3' /></td><td height='3' background='images/err_b.gif'><img src='images/err_b.gif' width='2' height='3' /></td><td width='3' height='3'><img src='images/err_br.gif' width='3' height='3' /></td></tr></table>";
	}else{
		var str = "<table width='100%' border='0' align='left' cellpadding='0' cellspacing='0'style='"+marginTop+"px; margin-bottom: "+marginBottom+"px;' id='tblSuccErr' class='err_margen'><tr><td width='3' height='3'><img src='images/err_g_tl.gif' width='3' height='3' /></td><td height='3' background='images/err_g_t.gif'><img src='images/err_g_t.gif' width='2' height='3' /></td><td width='3' height='3'><img src='images/err_g_tr.gif' width='3' height='3' /></td></tr><tr><td width='3' height='3' background='images/err_g_l.gif'><img src='images/err_g_l.gif' width='3' height='2' /></td><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='3%'><img src='images/16_warn.gif' width='16' height='16' hspace='3' vspace='3' /></td><td width='94%' valign='middle' class='green12'>&#160;&#160;"+msgStr+"<xsl:value-of select='$message' /></td><td width='3%' align='right' valign='middle' class='maroon12'><a href='javascript:;' onClick=\"document.getElementById('"+id+"').innerHTML=''\"><img src='images/informationbar_iconclose.gif' border='0' hspace='4' style='margin-top: 4px;' /></a></td></tr></table></td><td width='3' background='images/err_g_r.gif'><img src='images/err_g_r.gif' width='3' height='2' /></td></tr><tr><td width='3' height='3'><img src='images/err_g_bl.gif' width='3' height='3' /></td><td height='3' background='images/err_g_b.gif'><img src='images/err_g_b.gif' width='2' height='3' /></td><td width='3' height='3'><img src='images/err_g_br.gif' width='3' height='3' /></td></tr></table>";
	}

	document.getElementById(id).style.display='';
	document.getElementById(id).innerHTML = str;
}

