function zoom(id,pic)
{
var w = 640;
var h = 480;
myleft=(screen.width)?(screen.width-w)/2:100;
mytop=(screen.height)?(screen.height-h)/2:100;
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
win=window.open('screenshot.php?id=' + id + '&pic=' + pic,'Screenshot',settings);
win.focus();
}

function startexport()
{
var w = 400;
var h = 300;
myleft=(screen.width)?(screen.width-w)/2:100;
mytop=(screen.height)?(screen.height-h)/2:100;
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
win=window.open('blank.htm','Exportieren',settings);
win.focus();
}

function load_content(page)
{
	parent.frames[2].location.href='content.inc.php?page=' + page;
}

function hideDiv(id) {
   document.getElementById(id).style.visibility = "hidden";
   document.getElementById(id).style.display = "none";
}

function load_popup(page,id)
{
var w = 500;
var h = 400;
myleft=(screen.width)?(screen.width-w)/2:100;
mytop=(screen.height)?(screen.height-h)/2:100;
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no";
win=window.open(page + '.popup.php?id=' + id,'LodPopUp',settings);
win.focus();
}

function reloadpage(page)
{
	document.location.href='index.php?pid=' + page;
}
