/*

*/
function PopupWin(type, id, y, x, height, width){
  var NewX = ((window.screen.width-width)/100)*x
  var NewY = ((window.screen.height-height)/100)*y
	this.win = window.open('pgPopup.asp?type=' + type + '&id=' + id, "PopupWin_" + type, "scrollbars");
  win.blur();
  win.resizeTo(width,height);
  win.moveTo(NewX,NewY);
  win.focus();
  window.onunload = function(){win.close();}
}

function PopupDialog(url, id, x, y, w, h){

  x = ((window.screen.width-w)/100)*x;
  y = ((window.screen.height-h)/100)*y;
    
	this.win = window.open(url, id, "scrollbars");
  win.blur();
  win.resizeTo(w,h);
  win.moveTo(x,y);
  win.focus();
  window.onunload = function(){win.close();}
}


