// (c) EIKONA AG, it.x informationssysteme gmbh, Alle Rechte vorbehalten.

// History --------------------------------------------------------------------------------
// 11.12.02 mgs Erstellung
// History --------------------------------------------------------------------------------
 

// ----------------------------------------------------------------------------------------
// Allgemeine Zusatzfunktionen.
// ----------------------------------------------------------------------------------------

   //
   // Färbt Elemente einer Seite ein.
   //
	function js_set_cellcolor(zelle, farbe)
		{
		for(var i = 0; i <= 10; i++)
			{
			if(document.getElementById('zelle_'+i+'_'+zelle))
				{
				document.all['zelle_'+i+'_'+zelle].style.backgroundColor = farbe
				}
			}
		}
		
	   
	   
// ----------------------------------------------------------------------------------------
// U N G E P R Ü F T E   F U N K T I O N E N ! ! ! 
// ----------------------------------------------------------------------------------------

 function Add_A_Favorite(url,linktitel)
		{
		external.AddFavorite(url,linktitel);
		}

	function nocontextmenu() 
		{
		event.cancelBubble = true 
		event.returnValue  = false;
		return false;
		}
	
	function norightclick(e) 
		{
		if(window.Event) 
			{
			if(e.which==2||e.which==3) 
			return false;
			}
		else 
			if(event.button==2||event.button==3) 
				{
				event.cancelBubble = true 
				event.returnValue  = false;
				return false;
				}
			}

// Diese Zeilen in den Seitenkopf einbinden.
// 
// <SCRIPT language=JavaScript1.2> 
// 		<!--
// 		if(window.Event) 
// 			document.captureEvents(Event.MOUSEUP);
// 
// 		document.oncontextmenu = nocontextmenu;
// 		document.onmousedown   = norightclick;
// 		-->
// </SCRIPT>


//	----------------------------------------------------------------------------------------
//	3 Funktionen für Browserfensteröffner.
//	----------------------------------------------------------------------------------------
	function tmt_winLaunch(theURL,winName,targetName,features) 
		{ 
		eval(winName+"=window.open('"+theURL+"','"+targetName+"','"+features+"')"); eval(targetName+".focus()");
		}
	
	function MM_openBrWindow(theURL,winName,features) 
		{ //v2.0
		window.open(theURL,winName,features);
		}
	

