Estima do Cosertel yo hice algo asi  espero que te sirva
 
esto va sobre el html cuando se cumpla o no la condicion que determines    
Código ASP:
Ver original- NOTIFY = NOTIFY & "<table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">" 
-         NOTIFY = NOTIFY & "<form name=""form1"" method=""post"" action="""">" 
-         NOTIFY = NOTIFY & "  <tr>" 
-         NOTIFY = NOTIFY & "    <td height=""35"" valign=""middle"" bgcolor=""#FFFF99"" style=""color:#FF0000; font-size:16px; font-weight:bold; padding-left:10px;"">Notificacion de InmoWeb</td>" 
-         NOTIFY = NOTIFY & "    <td height=""35"" align=""right"" valign=""middle"" bgcolor=""#FFFF99"" style=""color:#FF0000; font-size:16px; font-weight:bold; padding-right:10px;;""><input type=""image"" name=""imageField"" src=""../../inmoweb/_imag/_sitio/close.gif"" style=""background-color:transparent;""></td>" 
-         NOTIFY = NOTIFY & "  </tr>" 
-         NOTIFY = NOTIFY & "  <tr>" 
-         NOTIFY = NOTIFY & "    <td colspan=""2"" bgcolor=""#FFFF99"" style=""padding-left:30px; color:#000000;""><b>Han ocurrido algunos errores en el ingreso de la información solicitada</b></td>" 
-         NOTIFY = NOTIFY & "  </tr>" 
-         NOTIFY = NOTIFY & "  <tr>" 
-         NOTIFY = NOTIFY & "    <td colspan=""2"" bgcolor=""#FFFF99"" style=""padding-left:50px; color:#FF0000;""><br>"& Errores &"<br></td>" 
-         NOTIFY = NOTIFY & "  </tr>" 
-         NOTIFY = NOTIFY & "<input name=""ocultar"" type=""hidden"" value=""1"">  " 
-         NOTIFY = NOTIFY & "</form>" 
-         NOTIFY = NOTIFY & "</table>" 
luego en el Head    
Código HTML:
Ver original-    
-       body { 
-         onload 
-       } 
-   
- <link rel="stylesheet" href="../_includes/mediabox/mediabox.css" type="text/css" media="screen" /> 
luego dentro del body    
Código html + asp:
Ver original- <% If errores <> "" and ocultar = 0 Then %>
 
- <script language="javascript">
 
- void(0)
 
- document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'
 
- </script>
 
- <% End If %> 
codigo archivo mediabox.css     
Código css:
Ver original- * { 
-         margin: 0; 
-         padding: 0; 
-     } 
-      
-     body { 
-         font-family: Georgia, "Times New Roman", Times, serif; 
-         font-size: 2em; 
-         background: #900; 
-         color: #fff; 
-     } 
-      
-     a { 
-         color: #F00; 
-     } 
-      
-     /* base semi-transparente */ 
-     .overlay{ 
-         display: none; 
-         position: absolute; 
-         top: 0; 
-         left: 0; 
-         width: 100%; 
-         height: 100%; 
-         background: #000; 
-         z-index:1001; 
-         opacity:.75; 
-         -moz-opacity: 0.75; 
-         filter: alpha(opacity=75); 
-     } 
-      
-     /* estilo para lo q este dentro de la ventana modal */ 
-     .modal { 
-         display: none; 
-         position: absolute; 
-         top: 25%; 
-         left: 25%; 
-         width: 50%; 
-         height: 50%; 
-         padding: 16px; 
-         background: #fff; 
-         color: #333; 
-         z-index:1002; 
-         overflow: auto; 
-     } 
espero te sirva ami me va muy bien asi se evita de mandar a otra pagina a mostrar errores y cosas por el estilo probado en varios navegadores sin problemas