window.ServletLinkManagerInstance=new ServletLinkManager;function ServletLinkManager(){this.portletIdToParameterArray={};this.portletIdToPathArray={}}ServletLinkManager.prototype.setPath=function(a,b){this.portletIdToPathArray[a]=b};ServletLinkManager.prototype.setParameter=function(a,b,c){if(!(a in this.portletIdToParameterArray)){var d={};d[b]=c;this.portletIdToParameterArray[a]=d}this.portletIdToParameterArray[a][b]=c}; ServletLinkManager.prototype.getParameterValue=function(a,b){var c=null;a in this.portletIdToParameterArray&&(c=this.portletIdToParameterArray[a][b]);return c};ServletLinkManager.prototype.navigateToServlet=function(a){this.syncWithForm(a);if(a in this.portletIdToPathArray){var b=this.portletIdToPathArray[a],c="?";b.indexOf("?")!=-1&&(c="&");b+=this.getQueryString(a,c);window.location=b}else window.alert("Could not go to servlet: path not found");return!1}; ServletLinkManager.prototype.getQueryString=function(a,b){var c="";if(a in this.portletIdToParameterArray){var d=b,e=this.portletIdToParameterArray[a],f;for(f in e){var g=e[f];g!=null&&(c=c+d+f+"="+encodeURIComponent(g),d="&")}}return c};ServletLinkManager.prototype.syncWithForm=function(a){var b=document.forms[a+"_paramForm"],c=b.elements;for(i=0;i