<!--

function open_presskontakt()
{ 
	open_window_name("../pressekontakt/", "width=524,height=600,resizable=no,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,location=no,left=50,top=0", "presskontakt");
}

function open_contact(id1, id2)
{ 
	var height;

	if (id1!=0 && id2!=0)
		height = 520;
	else	
		height = 300;

	open_window_name("popup.php?type=contact&id1=" + id1 + "&id2=" + id2,"toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=760,height=" + height, "contact");
}

function open_detail(url)
{ 
	open_window(url, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=990,height=600");
}

function open_send(id)
{ 
	open_window_name("send.php?id=" + id, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=524,height=550", "send");
}

function open_send_type(id, type)
{
	open_window_name("send.php?id=" + id + "&type=" + type, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=524,height=550", "send");
}

function open_notice(id)
{ 
	open_window_name("notice.php?id=" + id, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=524,height=600", "notice");
}

function open_notice_type(id, type)
{
	open_window_name("notice.php?id=" + id + "&type=" + type, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenx=20,screeny=20,width=524,height=600", "notice");
}

function open_img(img, width, height)
{
	width = width + 16;
	height = height + 38;
	var params = "width=" + width + ",height=" + height + ",left=20,top=20,resizable=no,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no";
	open_window("img.php?img=" + img, params);
}

function open_window(url, params)
{       	
	var name = "popup" + String(Math.round(Math.random() * 1000));

	var w = window.open(url, name, params);

	w.focus();
}

function open_window_name(url, params, name)
{       	
	var w = window.open(url, name, params);

	w.focus();
}

function FileDelete(action, filedel)
{
	document.frm.action = action + "?filedel=" + filedel;
	document.frm.submit();
}

function File(vars)
{       
	var url = "../addfile/file.php?" + vars;
	openPopupWin(url, 250);
}

function openPopupWin(url, height)
{
        var name = "new";
        var my_x = screen.availWidth/2-200;
        var my_y = screen.availHeight/2-220;
        var fenster = "width=400,height=" + height + ",left="+my_x+", top="+my_y+",resizable=no,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,location=no";

        w = open(url, name, fenster);

	w.focus();        
}

// -->
