function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function centered_popup(theURL,winName,w,h,features) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	//',scrollbars='+scroll+',resizable=no'
	
	winprops = 'height='+h+',width='+w+',left='+winl+',top='+wint+','+features;
	MM_openBrWindow(theURL,winName,winprops);
}


/*function centered_popup(theURL,winName,w,h,features) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	//',scrollbars='+scroll+',resizable=no'
	//winprops = 'height='+h+',width='+w+',left='+winl+',top='+wint+','+features;
	//MM_openBrWindow(theURL,winName,winprops);
	//
	if (theURL.indexOf("?") >= 0){
      char_join = "&";
   } else {
      char_join = "?";
   }
   
   url = theURL+char_join+"keepThis=true&TB_iframe=true&height="+h+"&width="+w
   tb_show(winName, url, false);
}*/