<%@  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.stringTable("DevResources");
   c.stringTable("FwResources"); %>

<HTML>
<HEAD>
<TITLE><%= c.toHTML(c.string("DeleteRole.DeleteRoleTitle")) %></TITLE>
<LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<jsp:include page='<%= c.getPath("dev/TCScripts_inc.jsp") %>' flush="true">
   <jsp:param name="TC.multipleObjectEnabled" value="true"/>
</jsp:include>

<script language="JavaScript">


   function onPageLoad()
   {
   	//Set this for the ObjectSelector
      returnFromOS();

      // Set the inital focus
      document.DeleteRBSRoleForm.single.focus();
   }

   //For MVStringEditor
   function isValid()
   {
   	return validateTargetChooser();
   }

   function onPageSubmit()
   {
      if (isValid())
      {
         if (continueWithDelete())
         {
         	return true;
         }
         else
         {
         	return false
         }
      }
      else
      {
      	return false;
      }
   }

   function setWaitCursor()
   {
	   document.body.style.cursor="wait";
   }

   function continueWithDelete()
   {
      var message = "<%= c.toHTML(c.string("DeleteRole.DeleteRoleWarning")) %>";

      if (!confirm(message))
      {
         return false;
      }
      else
      {
         setWaitCursor();
         return true;
      }
   }



</script>
</HEAD>

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="onPageLoad();">
<FORM name="DeleteRBSRoleForm" method=post action="webacc" onSubmit="return(onPageSubmit());">
   <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
   <input type=hidden name="merge" value="dev.GenConf">
   <input type=hidden name="error" value="dev.MooGenErr">
   <input type=hidden name="User.context" value="<%= c.var("User.context") %>">
   <input type=hidden name="nextState" value="doDeleteObject">
   <input type=hidden name="DeleteRoleMembers" value="<%= c.var("DeleteRoleMembers") %>">

   <% c.set("TaskHeader.title", c.toHTML(c.string("DeleteRole.DeleteRoleTitle")));
      c.set("TaskHeader.iconUrl", "dir/rbsRole2.gif"); %>
   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" /><BR>

   <FONT face="Helvetica,Arial" size=-1>

   <% c.set("TC.controlName", "DeleteObjectName");
	   c.set("TC.prompt", c.string("DeleteRole.RoleName"));
	   c.set("TC.multipleObjectEnabled", "true");
		c.set("TC.osTypeFilter", "rbsRole,rbsRole2"); %>
   <jsp:include page='<%= c.getPath("dev/TC_inc.jsp") %>' flush="true" />
   <BR><BR>
   <jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
   <INPUT type=image name="Delete" alt="<%= c.toHTML(c.string("Button.Delete.alt")) %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0><jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
   </FONT>
</FORM>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
