<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);
   c.set("GeneralMsg.Mode", "success"); 

   c.stringTable("DevResources"); 
   if ( c.notdef("GeneralMsg.MsgBody")) { 
      c.set("GeneralMsg.MsgBody", c.string("GeneralMsg.MsgBodyDefault")); 
   } 

   if (c.var("GeneralMsg.MsgTitle").equals("")) { 
      c.set("GeneralMsg.MsgTitle", c.string("GeneralMsg.MsgTitleDefault")); 
   } 

   if (c.var("GeneralMsg.Titlebar").equals("")) { 
      c.set("GeneralMsg.Titlebar", c.string("GeneralMsg.TitlebarDefault")); 
   } 

   if (c.var("GeneralMsg.Url").equals("")) { 
      if (c.var("GeneralMsg.Mode").equals("success") || c.var("GeneralMsg.Mode").equals("fatal")) { 
         c.set("GeneralMsg.Url.default", "true"); 
         c.set("GeneralMsg.Url", c.plus(c.plus(c.plus("webacc?taskId=", c.var("taskId")), "&taskComplete=true&User.context="), c.var("User.context"))); 
      } else if (c.var("GeneralMsg.Mode").equals("error")) { 
         c.set("GeneralMsg.Url", "Javascript:history.back()"); 
      } else { 
         c.set("GeneralMsg.Url", "Javascript:history.back()"); 
      } 
   } 

   if (c.var("GeneralMsg.Icon").equals("")) { 
      if (c.var("GeneralMsg.Mode").equals("success")) { 
         c.set("GeneralMsg.Icon", "dev/success32.gif"); 
      } else if (c.var("GeneralMsg.Mode").equals("error") || c.var("GeneralMsg.Mode").equals("fatal")) { 
         c.set("GeneralMsg.Icon", "dev/error32.gif"); 
      } 
   } %>


<HTML>
<HEAD>
   <TITLE><%= c.var("GeneralMsg.Titlebar") %></TITLE>
   <LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
   <jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
   <SCRIPT>
      function pageInit()
      {
         document.getElementById("okbutton").focus();
      }

      function goUrl(url)
      {
        if(window.opener == null)
         {
            window.location.href ="webacc?taskId=base.ExtendObjects&merge=fw.ExtendObject&nextState=doShowExtensions&eDir$target=<%= c.urlEncode(c.var("eDir$target")) %>&User.context=<%= c.var("User.context") %>";
         }
         else
         {
            window.opener.location ="webacc?taskId=base.ExtendObjects&merge=fw.ExtendObject&nextState=doShowExtensions&eDir$target=<%= c.urlEncode(c.var("eDir$target")) %>&User.context=<%= c.var("User.context") %>";
         }
      }
   </SCRIPT>
</HEAD>

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="pageInit();" TOPMARGIN="10">
<form name="form">
   <INPUT type=hidden name="eDir$target" value="<%= c.var("eDir$target") %>">
   <% if (c.var("GeneralMsg.Icon").equals("") == false) { %><img height="32" width="32" src="<%= c.getUrl(c.var("GeneralMsg.Icon")) %>" align="absmiddle"><% } %>
   <FONT <% if (c.var("GeneralMsg.Mode").equals("error")) { %>class=errorhead<% } else { %>class=head1<% } %>><%= c.toDisplay(c.var("GeneralMsg.MsgTitle")) %></FONT><BR><BR>

   <% if ( c.def("GeneralMsg.MsgBodyPlainText")) {    c.set("GenMsg.BoldDisplay", (c.toDisplay(c.var("GeneralMsg.MsgBodyBoldText"))));    c.set("GenMsg.BoldMsg", c.plus(c.plus("<B>", c.var("GenMsg.BoldDisplay")), "</B>"));    c.set("GenMsg.PlainMsg", (c.toDisplay(c.var("GeneralMsg.MsgBodyPlainText")))); %><%= c.formatMessage(c.var("GenMsg.PlainMsg"), new String[]{c.var("GenMsg.BoldMsg")}) %><% } else { %><%= c.toDisplay(c.var("GeneralMsg.MsgBody")) %><% } %><BR><BR>
   <%/* GeneralMsg.Url should NOT be urlEncoded since those who pass it to us should already have done so.  If we do, it causes problems  */%> 
   <!--<a id=okbutton href="#" onClick="javascript: opener.location.href='<%= c.var("GeneralMsg.Url") %>'; window.close();" ><IMG alt="<%= c.string("Button.OK.alt") %>" alt="<%= c.string("Button.OK.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0></a><BR>-->
   <a id=okbutton href="#" onClick="javascript: goUrl();if(opener!=null)window.close();" ><IMG alt="<%= c.string("Button.OK.alt") %>" title="<%= c.string("Button.OK.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0></a><BR>
</form>
</BODY></HTML>

