//Opens new windows in the middle of the screen depending on width
//and height of screen

function NewWindow(url) {
  var winl = (screen.width - 800) / 2;
	var wint = (screen.height - 599) / 2;
	winprops = 'height=535,width=790,top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
  win = window.open(url, '_blank', winprops);
}

function OpenWindow(url,w,h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl;
	win = window.open(url, '_blank', winprops);
}