var popupWin = null;
function makeNewWindow(fname,w,h) {
	popupWin = window.open(fname,"","scrollbars=yes,resizable=yes,width=" + w + ",height=" + h )
	//newWindow.moveTo(115,5);
	popupWin.focus();
	return false;
}


var pop = null;
function popup(obj,w,h,s) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  w = (w) ? w += 20 : 150;  // 150px*150px is the default size
  h = (h) ? h += 25 : 150;
  s = (s) ? s : 'no';
  var args = 'width='+w+',height='+h+',resizable,scrollbars='+s;
  pop = window.open(url,'',args);
  return (pop) ? false : true;
}
