//popup
function popup(url,w,h,nw) {
	l = (screen.width) ?	(screen.width-550) / 2	: 0;
	t = (screen.height) ?	(screen.height-400) / 2 : 0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars='+nw+',location=no,resizable=no,menubar=no';
	window.open(url,'Content',opt);
}

function media_popup(url,w,h,nw) {
//	l = (screen.width) ?	(screen.width-w) / 2	: 0;
//	t = (screen.height) ?	(screen.height-h) / 2 : 0;	
	l =  0;
	t =  0;	
	var opt='top='+t+',left='+l+',width='+w+',height='+h;
	opt=opt+',toolbar=no,status=no,directories=no,scrollbars='+nw+',location=no,resizable=no,menubar=no';
	window.open(url,'Content',opt);
}
