function openWin(loc,name,width,height,scrollbars) {
var sY = (screen.height - height) / 2 ; var sX = (screen.width - width) / 2;
popupWin = window.open(loc,name,'scrollbars='+scrollbars+',top='+sY+',left='+sX+',height='+height+',width='+width+'');
popupWin.focus();
}

/*Behaviour.register ({
	"a.popup" : function(el){
		el.onclick = function(){
			openWin(this.getAttribute('href'),'rb_news',620,700,'yes');
			return false;
		}
	}
});*/

//jquery

$(function() {
	$("a.popup").click(function() {
		openWin($(this).attr('href'),'rb_news',620,700,'yes');
		return false;					
	});
});
