<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit2, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit2 c = JSPConduit2.getJSPConduit(request);
     c.stringTable("DevResources");
     c.stringTable("FwResources"); %>

<HTML>
<HEAD>
<TITLE>SelectedObjectsButtons</TITLE>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<script>
   //------------- find OVTop ----------------
   var OVTop=top.Mainscreen.ObjectView;

   var bButtonsEnabled=false;
   function enableButtons(enabled)
   {
      if (bButtonsEnabled!=enabled)
      {
         document.getElementById("SOButtons").style.display=((enabled)?"inline":"none");
         document.getElementById("DisabledSOButtons").style.display=((enabled)?"none":"inline");
         bButtonsEnabled=enabled;
      }
   }
   
   function doTaskList(evt)
   {
      evt = ((evt)?evt:((window.event)?window.event:null));
      if (evt!=null)
      {
         var objNames = new Array();
         var cnt=0;
         for (i=0; i<OVTop.SelectedObjectsTitle.selectedObjects.length; i++)
         {
            if (OVTop.SelectedObjectsTitle.selectedObjects[i]!=null)
            {
               objNames[cnt] = OVTop.SelectedObjectsTitle.selectedObjects[i][0];
               cnt++;
            }
         }
         if (cnt>0)
         {
            OVTop.doTaskList(OVTop.SelectedObjectsTitle.document.body, objNames, evt);
         }
         iman.cancelEvent(evt);  //cancel event propagation/bubbling and default action 
      }
      return false;
   }
   
   function doResetHint()
   {
      if (OVTop.Results.bEnhancedHint) 
      {
         OVTop.Results.resetHint();
      }
   }

</script>
</HEAD>
<script>
   if (MS55)
      document.writeln('<body bgcolor="#EFEEE9" style="border-style:solid; border-width:1; border-color:#BFBBB2;">');
   else
      document.writeln('<body bgcolor="#EFEEE9">');
</script>
<div id=SOButtons style="width:100%;position:absolute;top:5;display:none">
<center>
<table height="100%" cellspacing=0 cellpadding=0 border=0>
   <tr>
      <td><a href="#" onClick="javascript:doResetHint();doTaskList(event)"><IMG alt="<%= c.toTag(c.string("Button.Task.alt")) %>" src="<%= c.getModulesUrl() %>/dev/images/<%= c.toTag(c.string("Button.Task.image")) %>" border=0></a></td>
      <td>&nbsp;&nbsp</td>
      <td><a href="javascript:doResetHint();OVTop.SelectedObjectsTitle.clearAllSelections()"><IMG alt="<%= c.toTag(c.string("OV.Browser.ClearAllHint")) %>" src="<%= c.getModulesUrl() %>/dev/images/<%= c.toTag(c.string("Button.ClearAll.image")) %>" border=0></a></td>
   </tr>
</table>
</center>
</div>

<div id=DisabledSOButtons style="width:100%;position:absolute;top:5;display:inline">
<center>
<table height="100%" cellspacing=0 cellpadding=0 border=0>
   <tr>
      <td><IMG alt="<%= c.toTag(c.string("Button.TaskDisabled.alt")) %>" src="<%= c.getModulesUrl() %>/dev/images/<%= c.toTag(c.string("Button.TaskDisabled.image")) %>" border=0></td>
      <td>&nbsp;&nbsp</td>
      <td><IMG alt="<%= c.toTag(c.string("Button.ClearAllDisabled.alt")) %>" src="<%= c.getModulesUrl() %>/dev/images/<%= c.toTag(c.string("Button.ClearAllDisabled.image")) %>" border=0></td>
   </tr>
</table>
</center>
</div>

<form name=PostData method=post target="" onSubmit="javascript:OVTop.processDisplayCountChange();return false;">
<input type=hidden name="OV.Results" id="ovresults" value="">
</form>
</body>
</HTML>
