
var pointx = null;
var pointy = null;

function show_info(title,message,corrX,corrY,absolute) {
    if(absolute==true){
       pointx = 1;
       pointy = 1;
    }
    if(!corrX){
        corrX = 0;
    }
    if(!corrY){
        corrY = 0;
    }
    if(pointx)
	{
	  document.getElementById("info_desc").style.left  = pointx+corrX+"px";
	  document.getElementById("info_desc").style.top = pointy+corrY+"px";
	}
	var e = document.getElementById('info_desc');
	e.style.display = 'block';
	var title_e = document.getElementById('info_title');
	title_e.innerHTML = title;
	var msg = document.getElementById('info_message');
	msg.innerHTML = message;

}

function generalClick (Ereignis) {
  if (!Ereignis)
	Ereignis = window.event;
  if (document.getElementById) {
	 pointx = (Ereignis.clientX-130);
	 pointy =  (Ereignis.clientY-90);
  }
}

function close(id) {
	var e = document.getElementById('info_desc');
	e.style.display = 'none';
}

function getPopupWindow(url,name,width,height,scrollbars,resizeable)
{
            posX = screen.width;
            posX = (posX - width) /2;
            posY = screen.height;
            posY = (posY - height - 50) / 2;

            dest = "" + url;
            param = "width=" + width + ",height=" + height;
            param+= ",top="+posY+",left="+posX;

            if(scrollbars)
            {
                  param += ",scrollbars=yes";
            }

            else
            {
                  param += ",scrollbars=no";
            }

            if(resizeable)
            {
                  param += ",resizable=yes";
            }
            else
            {
                  param += ",resizable=no";
            }
            param += ",status=no,directories=no,menubar=no";

            myWindow = window.open(dest,name,param);
            myWindow.focus();
            return false;
};

document.onmousedown = generalClick;