function newWd(page,width,height) {
	var scrollbars = 'no';
	
	
	if (height > screen.availHeight - 50) {
		height = screen.availHeight - 50;
		width = width + 20;
		scrollbars = 'yes';
		
	}
	
	var newwin = window.open(page, 'bigpic', 'screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbars+',resizable=yes,width='+width+',height='+height); //610 height=755  
	newwin.focus();
}