    function RemoveFile(dir, file)
    {
      var conf = confirm("You really want to remove " + file + "?")
      if (conf == true)
      {
        window.location = "utils_fileman.asp?action=removefile&dir=" + dir + "&file=" + file + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    
    function CreateFile(dir, file)
    {
      var conf = confirm("You really want to create " + file + "?")
      if (conf == true)
      {
        window.location = "utils_fileman.asp?action=createfile&dir=" + dir + "&file=" + file + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    
    function RemoveFolder(dir, file)
    {
      var conf = confirm("You really want to remove " + dir + "? All files in the folder will be removed.")
      if (conf == true)
      {
        window.location = "utils_fileman.asp?action=removefolder&dir=" + dir + "&file=" + file + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    
    function PromptCreate(dir)
    {
      var name = prompt("Enter the name of the new folder", "New Folder")
      if (name != null && name != "")
      {
        window.location = "utils_fileman.asp?action=createfolder&dir=" + dir + "&target=" + name + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    function PromptRenameFile(dir, file)
    {
      var name = prompt("What do you want to rename " + file + " to?", file)
      if (name != null && name != "")
      {
        window.location = "utils_fileman.asp?action=renamefile&dir=" + dir + "&file=" + file + "&target=" + name + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    function PromptRenameFolder(dir, file)
    {
      var name = prompt("What do you want to rename " + file + " to?", file)
      if (name != null && name != "")
      {
        window.location = "utils_fileman.asp?action=renamefolder&dir=" + dir + "&file=" + file + "&target=" + name + ""
      }
      else
      {
        //alert("OOh... You cancelled your action! What a pity!")
      }
    }
    
    function addcomments(dir,file,cid,comms)
    {
        var comm = prompt("Please enter your comments for image",comms)
      if (comm != null && comm != "")
      {
        //window.location = "mod_gal_comments.asp?action=addfilecomments&cid=" + cid + "&file=" + file + "&dir=" + dir + "&comm=" + comm
        alert("Not implemented yet... Sorry!!!")
      }
      else
      {
        //alert("Invalid Input")
      }
    }
    
    function addeditdircomments(dir,comms)
    {
      var comm = prompt("Please enter your comments for the directory",comms)
      if (comm != null && comm != "")
      {
        window.location = "mod_gal_comments.asp?action=adddircomments&dir=" + dir + "&comm=" + comm
      }
      else
      {
        //alert("Invalid Input")
      }
    }
