
<!---
function newwnd(page,_width,_height)
{
zufall=Math.random();
zufall*=16;
zufall=Math.ceil(zufall);
_left=(screen.width-_width)/2;
_top=(screen.height-_height)/2-25;
window.open(page, 'detail' + zufall, 'top=' + _top + ',left=' + _left + ',width=' + _width + ',height=' + _height + ',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}
	function newwnd_noscroll(page,_width,_height)
	{
		zufall=Math.random();
		zufall*=16;
		zufall=Math.ceil(zufall);
		
		_left=(screen.width-_width)/2;
		_top=(screen.height-_height)/2-25;
		window.open(page, 'detail' + zufall, 'top=' + _top + ',left=' + _left + ',width=' + _width + ',height=' + _height + ',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}

function confirm(link)
{
_width = 290;
_height = 120;
_left=(screen.width-_width)/2;
_top=(screen.height-_height)/2;
window.open(link, 'confirm', 'top=' + _top + ',left=' + _left + ',width=' + _width + ',height=' + _height + ',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
function fileman(link)
{
_width = 550;
_height = 180;
_left=(screen.width-_width)/2;
_top=(screen.height-_height)/2;
window.open(link, 'fileman', 'top=' + _top + ',left=' + _left + ',width=' + _width + ',height=' + _height + ',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
function sizeEditDiv() {
// grösse des con_ver_edit Div's anpassen
if (window.innerHeight) hoehe = window.innerHeight;
else if (document.body && document.body.offsetHeight) hoehe = document.body.offsetHeight;
if (window.innerWidth) breite = window.innerWidth;
else if (document.body && document.body.offsetWidth) breite = document.body.offsetWidth;
document.getElementById(sizeEditDiv_div_name).style.height = hoehe-sizeEditDiv_margin_top; 
document.getElementById(sizeEditDiv_div_name).style.width = breite-sizeEditDiv_margin_left; 
}
function chimg(ID_Content, Field, neu)
{
change = '/verwaltung/bilder/frame.php?site=' + ID_Content + '&field=' + Field + '&new=' + neu + '&img_openNode=' + img_openNode;
window.open(change, 'bildpool', 'top=10,left=10,width=1000,height=700,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}
function chswf(ID_Content, Field, neu)
{
change = '/verwaltung/flash/frame.php?site=' + ID_Content + '&field=' + Field + '&new=' + neu;
window.open(change, 'flashpool', 'top=10,left=10,width=1000,height=700,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
}
function delimg(Field)
{
bild = document.getElementById(Field);
bild.value='';
imgbild = document.getElementById('img_'+Field);
imgbild.src='';
}

function chfile(ID_Content, Field, neu)
{
change = '/verwaltung/files/frame.php?site=' + ID_Content + '&field=' + Field + '&new=' + neu;
window.open(change, 'filepool', 'top=10,left=10,width=1000,height=700,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}
function delfile(Field)
{
bild = document.getElementById(Field);
bild.value='';
}

function chkicker(ID_Content, Field, neu)
{
change = '/verwaltung/kicker/index.php?site=' + ID_Content + '&field=' + Field + '&new=' + neu;
window.open(change, 'kickerpool', 'top=10,left=10,width=800,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}
function delkicker(Field)
{
document.getElementById(Field).value = '';  
}
function createLink(Field, selText)
{
change = './content/index.php?field=' + Field + '&selText=' + selText;
window.open(change, 'linkpool', 'top=10,left=10,width=800,height=600,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
}
/* Ersetzt document.getElementById */
function $() {
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
var element = arguments[i];
if (typeof element == 'string')
element = document.getElementById(element);
if (arguments.length == 1)
return element;
elements.push(element);
}
return elements;
}
//-->