	  function newWindow(url, pWidth, pHeight, pScrollbars) {
	
	      agent = navigator.userAgent;
	      windowName = "Portfolio";
	      params  = "";
	      params += "toolbar=0,";
	      params += "location=0,";
	      params += "directories=0,";
	      params += "status=0,";
	      params += "menubar=0,";
	      params += "resizable=0,";
	      params += "left=0,";
	      if (pWidth == "null") {
			params += "width=350,";
	        params += "height=350";
	      }
		  else {
			params += "width=" + pWidth+ ",";
	        params += "height=" + pHeight+ ",";
	      }

	      if (pScrollbars == "null") {
			params += "scrollbars=0,";
	      }
		  else {
			params += "scrollbars=" + pScrollbars;
	      }

		  // close the window to vary the window size
	   	  if (typeof(win) == "object" && !win.closed){
            win.close();
	      }
	   
	      win = window.open(url, windowName , params);

	      if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
	          win = window.open(url, windowName , params);
	      }
	
	      if (!win.opener) {
	          win.opener = window;
	      }
	
		  // bring the window to the front
		  win.focus();	
	  }
	  
