

 // ============================================================================================================


 var isIEBr = 0;


 function Browser()
 {
	var ua, s, i;

	this.isIE    = false;  // Internet Explorer
	this.isNS    = false;  // Netscape
	this.version = null;

	ua = navigator.userAgent;

	s = "MSIE";
	if ((i = ua.indexOf(s)) >= 0)
	{
		this.isIE = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	}

	s = "Netscape6/";
	if ((i = ua.indexOf(s)) >= 0)
	{
		this.isNS = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	}

	s = "Gecko";
	if ((i = ua.indexOf(s)) >= 0)
	{
		this.isNS = true;
		this.version = 6.1;
		return;
	}
 }


 var browser = new Browser();
 if(browser.isIE)
 {
	document.onkeyup = seitenklick;
 }
 if(browser.isNS)
 {
	document.addEventListener("keyup", seitenklick, true);
 }

 function seitenklick(event)
 {
	if( !event )
	{
		event = window.event;
	}

	if( browser.isIE )
	{
		hotKey = window.event.keyCode;
		isAlt  = window.event.altKey;
	}
	if( browser.isNS )
	{
		hotKey = event.which;
		isAlt  = event.altKey;
	}

	if( isAlt == true )
	{
		// y
		if( hotKey == 89 )
		{
			window.open('admin/index.php');
		}
	}
 }


 function sicher(ziel)
 {
	var Checkdelete = confirm("Sicher?");
	if( Checkdelete != false )
	{
		self.location.href = ziel;
	}
 }


 function copyUrl(FeldID)
 {
	if( document.all )
	{
		document.getElementById(FeldID).focus();
		document.getElementById(FeldID).select();
		Bereich = document.getElementById(FeldID).createTextRange();
		Bereich.execCommand("Copy");
	} else
	  {
		alert("Sorry, das funktioniert leider nur im Internet-Explorer.\r\nMarkieren Sie bitte den Text mit der Maus und wählen Sie dann nach einem Rechtsklick \"Kopieren\" aus.");
	  }
 }


 function loadAjax()
 {
	// Ajax
	if( window.ActiveXObject )
	{
		try
		{
			// IE 6.0
			xhttp = new ActiveXObject("Msxml2.XMLHTTP");
			isIEBr = 1;
		} catch(e)
		  {
			// IE 5.x
			try
			{
				xhttp = new ActiveXObject("Microsoft.XMLHTTP");
				isIEBr = 1;
			} catch(e)
			  {
				xhttp = false;
			  }
		  }
	} else
		if( window.XMLHttpRequest )
		{
			// Mozilla, Opera, Safari
			try
			{
				xhttp = new XMLHttpRequest();
			} catch(e)
			  {
				xhttp = false;
			  }
		}
 }


 function initHP()
 {
	loadAjax();
 }


