function open_internerlink_nw(url,w,h)
	{
	l = Math.round(screen.width/2)-Math.round(w/2);
	t = Math.round(screen.height/2)-Math.round(h/2);
	window.open(url,'','left='+l+',top='+t+',dependent=no,width='+w+',height='+h+',scrollbars=yes,status=no,toolbar=no,menubar=no');
	}

function changeimg(bildname,dateiname)
	{
	document.images[bildname].src=dateiname;
	}

function showpic(id,picture,width,height)
	{
	if (parseInt(width) < 2)
		{
		width  = parseInt(width) + 25;
		height = parseInt(height) + 25;
		}
	else
		{
		width	= 980
		height	= 680
		}
	window.open('/file/'+id+'_'+picture,'cmspicture'+id,'width='+(width)+',height='+(height)+',scrollbars=yes');
	}
	
function showpic_thumbs(bezeichnung,sitzungsid,size) 
	{
	var wsize = size+100;
	var hsize = size+50;
	var adresse = 'http://biomarkt.de/thumb/'+bezeichnung+'_size_'+size+'_sizeby_max_path_abilder.jpg';
	var win = window.open(adresse,'zeige_bild','width='+wsize+',height='+hsize+',resizable=0,scrollbars=yes,screenX=100,screenY=250');
	win.focus();
	}

function showpic_thumbsrezept(bezeichnung,sitzungsid,size)
	{
	var wsize = size+100;
	var hsize = size+50;
	var adresse = '/thumb/'+bezeichnung+'_size_'+size+'_sizeby_max.jpg';
	var win = window.open(adresse,'zeige_bild','width='+wsize+',height='+hsize+',resizable=0,scrollbars=yes,screenX=100,screenY=250');
	win.focus();
	}
