
function show(anzeigen) {
 if(document.getElementById(anzeigen))
   document.getElementById(anzeigen).style.visibility = "visible";
}

function hide(verstecken) {
 if(document.getElementById(verstecken))
   document.getElementById(verstecken).style.visibility = "hidden";
}
//------------------------------------------------------
//pop-ups
function NewWindow_admin(url) {
NewWin =  window.open(url,"admin",'toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=780,height=440');               
}

function NewWindow_popup(url) {
NewWin =  window.open(url,"popup",'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=530,height=530');               
}

//------------------------------------------------------
//Bilder Vorladen
function BilderVorladen()
{
	document.Vorladen = new Array();
	if(document.images)
	{
		for(var i=0; i<BilderVorladen.arguments.length; i++)
		{
			document.Vorladen[i] = new Image();
			document.Vorladen[i].src = BilderVorladen.arguments[i];
		}
	}
}
//------------------------------------------------------
//Zellenfarbe aendern
function cell_default(cell)
		{
			if(document.getElementById||(document.all && !(document.getElementById)))
			{
				cell.style.backgroundColor="#BD0000";
			}
		}


		function cell_highlight(cell)
		{
			if(document.getElementById||(document.all && !(document.getElementById)))
			{
				cell.style.backgroundColor="#DC3535";
			}
		}
//---------------------------------------------------------------------------
//Bildertauschen beim Hover
	var getElements = new Array; 	
	function ini(){
		for(i=0;i<(document.images.length);i++){getElements[i]=document.images[i].src;}	
		}
		function ini_parent(frame_name)//Frame name (parent.name)
		{
		for(i=0;i<(frame_name.document.images.length);i++){frame_name.document.images[i].src=frame_name.getElements[i];}
				}
	function ChangeImage(which,image,e){		
		if(which!=status){
			if(e.type=='mouseover' || e.type=='mouseout'){document.images[which].src= image;}
			if(e.type=='click'){
				for (i=0;i<(document.images.length);i++){
								document.images[i].src=getElements[i];}		
				document.images[which].src=image;
				status=which;
				ini_parent(parent.head);
				}	
			}
	}
	
//---------------------------------------------------------------------------
//ClearINput
function clearText(inputfield){if (inputfield.defaultValue==inputfield.value){inputfield.value = ""}}
function clear_inputfield(){window.document.forms[0].USR.value="benutzername";window.document.forms[0].PWD.value="passwort";}
//---------------------------------------------------------------------------
//Textscroller

//scroller width
var swidth=150

//scroller height
var sheight=350


//scroller's speed;
var sspeed=2
var wholemessage=''

function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
ns6marquee(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
ns4marquee(document.slider1.document.slider2)
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-20)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",110)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=sheight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-220)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",110)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}


// -->
