function openAdmin(account, id_event_date)
{
	var site = 'http://cb-event.de/login.php?account=' + account+'&inifile=default.ini&eventDateId=' + id_event_date;     
   window.open(site,'popupAdmin','width=800,height=510,top=100,left=200');
}

function displayImage(url,w,h, title, copyright, photographer, description)
{

	var params='dependent=yes,scrollbars=auto,toolbar=no,resizable=yes,top=100,left=200';

	if(typeof w=="undefined"||w>775)

	w=775;

	if(typeof h=="undefined"||h>560)

	h=560;

	params+=',width='+(w+25)+',height='+(h+45);

	// böser hack mit der popup.pic.php url

	var address = encodeURI('http://cb-out.de/popup.pic.php?url='+url+'&title='+title+'&copyright='+copyright+'&photographer='+photographer+'&description='+description);

	if(top.imageWindow)

	top.imageWindow.close();

	top.imageWindow=window.open(address,'cbOutPicPopup',params);

	top.imageWindow.focus();

}
