
function PopupPic(url,w,h,params) { 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0'
	window.open(url+params, "", winprops)
}

function launchCenter(url, name, height, width, verScroll) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (verScroll == 'yes') {
			str += ",scrollbar=true";
  }
  if (window.screen) {
	var ah = screen.availHeight - 30;
	var aw = screen.availWidth - 10; 
	var xc = (aw - width) / 2;
	var yc = (ah - height) / 2;
 
	str += ",left=" + xc + ",screenX=" + xc;
	str += ",top=" + yc + ",screenY=" + yc;
  }
  return window.open(url, name, str);
}