function ddMenu (idElement) {
	e=document.getElementById(idElement);
	newurl=document.URL;
	p=newurl.indexOf("&id");
	if (p>0) {
		newurl=newurl.substring(0,p);
	}
	newurl=newurl+"&id="+e.value;
	parent.location.href = newurl;
}

function TogglePlusMinus (idButton,idLayer)
{
	minus= "pics/icon_minus.gif";
	plus = "pics/icon_plus.gif";

	if (document.getElementById(idButton).alt == "plus") { 
		document.getElementById(idButton).src = minus;
        	document.getElementById(idButton).alt = "minus";
		document.getElementById(idLayer).style.display = "block";
	} else {
		document.getElementById(idButton).src = plus;
		document.getElementById(idButton).alt = "plus";
		document.getElementById(idLayer).style.display = "none";
	}
}

function pm_popup(anzahl,url) {
	if (confirm('Sie haben '+anzahl+' neue private Nachrichte(n).\nMöchten Sie diese lesen?')) {
		window.location.href = url;
		window.focus();
	}
}



var bigpicWin = null;

function showbigimage(url, picwidth, picheight, description)
{
  if (!bigpicWin || bigpicWin.closed)
  {
    usrwidth = screen.width;
    usrheight = screen.height;

    winwidth = picwidth;
    winheight = picheight;

    var X = (usrwidth - winwidth) / 2;
    var Y = (usrheight - winheight) / 2;

    properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight+",";

    checkie = navigator.appName.indexOf("icrosoft");
    if (checkie == -1)
    {
      properties = properties+"screenX="+X+",screenY="+Y;
    }
    else
    {
      properties = properties+"left="+X+",top="+Y;
    }

    bigpicWin = window.open('','bigpicWin',properties);

    bigpicWin.document.open();
    bigpicWin.document.write('<HTML><HEAD>');
    bigpicWin.document.write('<TITLE>'+description+'</TITLE>');
    bigpicWin.document.write('</HEAD>');
    bigpicWin.document.write('<BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">');
    bigpicWin.document.write('<A HREF="JavaScript:self.close()"><IMG SRC="'+url+'" HSPACE="0" VSPACE="0" BORDER="0"></A>');
    bigpicWin.document.write('</BODY>');
    bigpicWin.document.write('</HTML>');
    bigpicWin.document.close()

    bigpicWin.focus();
  }
  else
  {
    bigpicWin.focus();
  }
}

