function sizedPopup(url,width,height,left,top,type) {
          self.name = "opener";
          remote = open(url, "thePopup", "resizable,scrollbars,status,width="+width+",height="+height+",left="+left+",top="+top);
          if (type==1) {
               window.focus();
               remote.blur();
          } else {
               remote.focus();
          }
    }
	
function addWindowClosers() {
	document.getElementById('popupnav').innerHTML = '<a href="javascript: window.close()">close this window</a>';	
}
