Index: trunk/web-app/js/jsUtil.js
===================================================================
--- trunk/web-app/js/jsUtil.js	(revision 818)
+++ trunk/web-app/js/jsUtil.js	(revision 819)
@@ -123,2 +123,7 @@
     window.open(url);
 }
+
+function getContextPath() {
+    var contextPath = '/' + location.pathname.split('/',2)[1]
+    return contextPath
+}
