private String getNewUrl(HttpServletRequest request, String url)
	  {
	    String newUrl = null;
	    String connector = "?";
	    
	    if ((request != null) && (url != null)) {
	      StringBuffer sburl = new StringBuffer(url);
	      Enumeration enu = request.getParameterNames();
	      while (enu.hasMoreElements()) {
	        String paraName = (String)enu.nextElement();
	        String paraValue = request.getParameter(paraName);
	        
	        if (sburl.indexOf("?") != -1)
	              connector = "&";
	        if ((!(paraName.equals("pageid")))&&url.indexOf(paraName)==-1) {
	 
	            sburl.append(connector);
	            sburl.append(paraName);
	            sburl.append("=");
	            sburl.append(paraValue);
	            
	          }
	      }
	      newUrl = sburl.toString();
	    }
	    return newUrl;
	  }