// popup
function WinPop(url,width,height) {
	options = "scrollbars=yes"+",status=yes"+",width="+width+",height="+height;
	Win = window.open(url,"Popup", options);
	Win.focus();
}

// popup
function WinPipPop(url,width,height) {
	options = "scrollbars=no"+",status=yes"+",width="+width+",height="+height;
	Win = window.open(url,"PipPopup", options);
	Win.focus();
}


// popup
function PopInfo(url,width,height) {
self.name = "Parent_Window"; 
	options = "scrollbars=yes"+",status=yes"+",width="+width+",height="+height;
	Win = window.open(url,"PopInfo", options);
	Win.focus();
}


//popster 1.0

var pop = null;

function popdown() {
  if (pop && !pop.closed) pop.close();
}

function popup(obj,w,h) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  w = (w) ? w += 20 : 750;  // 750px*500px is the default size
  h = (h) ? h += 25 : 500;
  var popster = 'width='+w+',height='+h+',resizable';
  popdown();
  pop = window.open(url,'',popster);
  return (pop) ? false : true;
}

window.onfocus = popdown;
