function maxResize() {
	window.moveTo(4,4);
	self.resizeTo(screen.availWidth-8, screen.availHeight-30);
}

function popup(URL) { 
  xpos = (screen.availWidth/2)-478
  ypos = (screen.availHeight/2)-324
  newWindow = window.open(URL, "loading",
  "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=787,height=560,left="+xpos +",top="+ypos) 
  loading.focus();
} 

function newwindow(URL) { 
  winwidth = (screen.availWidth)-60
  winheight = (screen.availHeight)-60
  newWindow = window.open(URL, "newwindow",
  "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width="+winwidth +",height="+winheight +",left=20,top=20") 
  newwindow.focus();
} 
