
function openHelpTextWindow(url) {

   var newUrl = url;
  
   if(navigator.appName.indexOf("Netscape") > -1) {
  
   var version = parseInt(navigator.appVersion);
   
   if(version <= 5) {
      for(x=0; x < url.length; x++) {
          var c = url.charAt(x);
          newUrl += (c == ' ') ? "%20" : c;          
      } //for   
   } //if
   
   } //if
  
   //alert(newUrl);
   help_window=window.open(newUrl,
               "details_window",
               "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=350,height=250");
} //openHelpTextWindow		


function handleUserMenuEvent(formdoc) {
  
   var eventText = formdoc.ActionBar.choicemenu.value;
   
   if(eventText != null && eventText != "null") {
      if(eventText == "Edit") {
         formdoc.ActionBar.action="ListUserDetailPage.jsp";
      } else if(eventText == "ChangeDomain") {
         formdoc.ActionBar.action="ChangeDomainPage.jsp"; 
      } else if(eventText == "ChangePassword") {
         formdoc.ActionBar.action="ChangeUserPasswordPage.jsp";
      } else if(eventText == "ChangeUserName") {
         formdoc.ActionBar.action="ChangeUserNamePage.jsp";
      } else if(eventText == "Delete") {
         formdoc.ActionBar.action="ConfirmDeleteUserPage.jsp";
      } //if-else if
      
      formdoc.ActionBar.submit();
   } //if
   
} //handleEvent


function handleGroupMenuEvent(formdoc) {

   var eventText = formdoc.ActionBar.choicemenu.value;
   //alert("eventText = " + eventText);
   
   if(eventText != null && eventText != "null") {
      if(eventText == "Delete") {
         formdoc.ActionBar.action="ConfirmDeleteGroupPage.jsp";
      } else if(eventText == "Edit") {
         formdoc.ActionBar.command.value = "Edit";
         formdoc.ActionBar.action="ListGroupDetailPage.jsp";
      } else if(eventText == "ChangeOwner") {
         formdoc.ActionBar.action="ChangeOwnerPage.jsp";
      } else if(eventText == "ChangeDomain") {
         formdoc.ActionBar.action="ChangeGroupDomainPage.jsp";
      } else if(eventText == "MailTo") {
         formdoc.ActionBar.action="MailToGroupPage.jsp";
      } //if-else if
      
      formdoc.ActionBar.submit();
   } //if

}