		
function center(win,w,h) {

	var x = screen.availWidth/2-w/2;
	var y = screen.availHeight/2-h/2;
	win.moveTo(x,y);
	//self.resizeTo(screen.availWidth,screen.availHeight)
}

function popup(mylink, windowname){
	var w=450;
	var h=160;
	var href;
	if (!window.focus) return true;
	if (typeof(mylink) == 'string') href=mylink;
	else href=mylink.href;
	var popWin = window.open(href, windowname, 'width='+w+',height='+h+',scrollbars=no,status=no');
	center(popWin,w,h)
	popWin.focus();
	}
	

	
	
