/**************************************************************************/
function externLink(url) {
/**************************************************************************/

  externWindow = window.open(url,"extern");
  externWindow.focus();
  
  return false;

}

/**************************************************************************/
function popupLink(url, width, height) {
/**************************************************************************/
/*
  if (popupWindow.closed == true) {
    
  } else {
    //popupWindow.close();
  }
  
  if (popupWindow.name != "") {
    //popupWindow.close();
  }
*/
  //popupWindow.close();
  var options = "top=0,left=0,width="+width+",height="+height+",scrollbars=no,toolbar=no,menubar=no,resizable=yes"; 
  
  popupWindow = window.open(url,"popup", options);
  popupWindow.focus();
  

  
  return false;

}
/**************************************************************************/
/* ###################################################################### */
/* Tooltip Anfang */
/* ###################################################################### */
/**************************************************************************/

/**************************************************************************/
function TX_getScrollPos() {
/**************************************************************************/
   if (document.body.scrollTop != undefined && navigator.appName.indexOf("Explorer") != -1 ) {
      var res = (document.compatMode != "CSS1Compat") ? document.body : document.documentElement;
      return {x : res.scrollLeft, y : res.scrollTop};
   }
   else {
      return {x : window.pageXOffset, y : window.pageYOffset};
   }

}

/**************************************************************************/
function TX_showToolTip(e, text) {
/**************************************************************************/

	var scr = TX_getScrollPos();
	var cordX = e.clientX + scr.x;
	var cordY = e.clientY + scr.y;
	var correctorY = e.clientY + document.getElementById("tooltip").offsetHeight + 20 - window.innerHeight;

	document.getElementById("tooltip").style.visibility = "hidden";
	document.getElementById("tooltip").innerHTML = text;
	document.getElementById("tooltip").style.position = "absolute";
	document.getElementById("tooltip").style.left = ( cordX + 10 ) + "px";

	if ( correctorY > 0 ) {
		document.getElementById("tooltip").style.top = ( cordY - correctorY ) + "px";
	} else {
		document.getElementById("tooltip").style.top = ( cordY + 10 ) + "px";
	}

	document.getElementById("tooltip").style.visibility = "visible";
}

/**************************************************************************/
function TX_hideToolTip() {
/**************************************************************************/
	document.getElementById("tooltip").style.visibility = "hidden";
	document.getElementById("tooltip").innerHTML = "false";	
}

/**************************************************************************/
/* ###################################################################### */
/* Tooltip Ende */
/* ###################################################################### */
/**************************************************************************/
