  function osWswitch(obj) {
    if (document.getElementById(obj).style.display == 'block') {
      document.getElementById(obj).style.display = 'none'
    } else {
      document.getElementById(obj).style.display = 'block'
    }
  }

  function osWconfirm_action_lock(obj) {
    var name=confirm("Are you sure you wish to mark this page as 'locked?' Pages marked 'locked' can only be edited by administrators.")
    if (name==true) {
      window.location=obj+"?osWaction=lock&amp;osWmode=yes"
    }
  }

  function osWconfirm_action_unlock(obj) {
    var name=confirm("Are you sure you wish to mark this page as 'unlocked?' This will allow editors and other permitted users, as well as administrators, to edit this page.")
    if (name==true) {
      window.location=obj+"?osWaction=unlock&amp;osWmode=yes"
    }
  }

  function osWconfirm_action_delete(obj) {
    var name=confirm("Are you sure you wish to delete this page (and all sub-pages)?")
    if (name==true) {
      window.location=obj+"?osWaction=delete&amp;osWmode=yes"
    }
  }