function openPopUp (url,title,w,h,x,y,scrollbars,resizable) {

  var xpos, ypos = 0;
  
  if (title == undefined)
    title = "";
  if (x == undefined)
    xpos = (xClientWidth()-w)/2;
  else
    xpos = x;
  if (y == undefined)
    ypos = (xClientHeight()-h)/2;
  else
    ypos = y;

	if (scrollbars == undefined)
		scrollbars = 1;

  var params = "width="+w+",height="+h+",toolbar=0,scrollbars=" + scrollbars + ",resizable=" + resizable + ",statusbar=1,top="+ypos+",left="+xpos;
  var popup = window.open(url,escape(title),params);
  popup.focus();
}
