var Win=0;
		
function popUps(URLStr, width, height)
			{
  			var top=(screen.availHeight-450)/2;
  			var left=(screen.availWidth-450)/2;
  				
  			if(Win){
    		if(!Win.closed) Win.close();
  			}
  			Win = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
		
window.onload = function() {
  if (!document.getElementsByTagName) return false;
  var lnks = document.getElementsByTagName("a");
  for (var i=0; i<lnks.length; i++) {
    if (lnks[i].className == "popup") {
      lnks[i].onclick = function() {
        popUp(this.getAttribute("href"));
        return false;
      }
    }
  }
}

function popUp(winURL) {
  window.open(winURL,"popup","width=500,height=50");
}
	

	



