// Java Scripts der Feuerwehr Hamepage

// Mehrere Fensterinhalte ändern
function ZweiFrames (URL1,F1,URL2,F2,URL3,F3)
{
 parent.frames[F1].location.href=URL1;
 if (URL2 != '')
 { parent.frames[F2].location.href=URL2; }
 if (URL3 != '') 
 { parent.frames[F3].location.href=URL3; }
}

// Tool-Tipps

function showTT(id,inputposition) 
{
	TT_WIN=document.getElementById(id);
	document.onmousemove = updateTT;
	TT_WIN.style.display="block"
}

function updateTT(inp) 
{
	// x=(document.all)?window.event.x+document.body.scrollLeft:inp.pageX;
	y=(document.all)?window.event.y+document.body.scrollTop:inp.pageY;
	x=5;
	TT_WIN.style.left=(x+15)+"px";
	TT_WIN.style.top=(y+8)+"px";

}

function hideTT() 
{
	TT_WIN.style.display="none";
}

//  BACK - Button
compat = false; 
if ((navigator.appName.lastIndexOf('Netscape') != -1) && ((parseInt(navigator.appVersion)>= 3)))
{compat = true;}
else if ((navigator.appName.lastIndexOf('Microsoft') != -1) && ((parseInt(navigator.appVersion)>= 4)))
{compat = true;} 
if(compat)
{ backon = new Image;(131,22); backon.src = "http://www.feuerwehr-stuhr.de/global/back_on.gif";
  backoff = new Image;(131,22); backoff.src = "http://www.feuerwehr-stuhr.de/global/back.gif"; }
function over(x, y)
{ if(compat) {document.images[x].src=eval(y+'.src');}}

//  BACK - Prozedur
function goBack (target)
{ window.history.go(target) ; }

//Smilie - Insert
function smile(nr,text)
{a = document.textfeld.elements[nr].value;
 document.textfeld.elements[nr].value= a + text;}
 
 // Seite - Drucken
 function printpage()
{
	if (window.print)
	{
	window.print();
	}
	else
	{
	alert('Ihr Browser unterstützt diese Funktion nicht. Klicken Sie einfach mit der rechten Maustaste in die Seite und wählen Sie die Option "Print" bzw. "Drucken" aus.');
	}
}
