diff --git a/indra/llui/llpanel.cpp b/indra/llui/llpanel.cpp
index 1605221cca79d03424b40009cd54c3e930b704d1..91f4f1d29aba883119e8e6bac26e5dd199b94480 100644
--- a/indra/llui/llpanel.cpp
+++ b/indra/llui/llpanel.cpp
@@ -877,3 +877,8 @@ LLPanel* LLPanel::createFactoryPanel(const std::string& name)
 	LLPanel::Params panel_p;
 	return LLUICtrlFactory::create<LLPanel>(panel_p);
 }
+
+void set_child_visible(LLView* parent, const std::string& child_name, bool visible)
+{
+    parent->getChildView(child_name)->setVisible(visible);
+}
diff --git a/indra/llui/llpanel.h b/indra/llui/llpanel.h
index eb7fe7e1a05bbe0b08c3fb41971252113497d223..772b6f20ce9ac690c07cd9d78916dc300a9f9d8d 100644
--- a/indra/llui/llpanel.h
+++ b/indra/llui/llpanel.h
@@ -313,5 +313,6 @@ template<typename T>
 	LLRegisterPanelClass::instanceFast().addPanelClass(tag,&LLRegisterPanelClass::defaultPanelClassBuilder<T>);
 }
 
+void set_child_visible(LLView* parent, const std::string& child_name, bool visible);
 
 #endif