<!-- Start Script

function swappic(img_name,img_src){
	document[img_name].src=img_src;
}
function openwindow(datei, w, h) {
	window.open(datei,"_blank","toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizeable=0,copyhistory=0,menubar=0,width=" + w + ",height=" + h)
}

function popup($datei, $w, $h, $sb, $resize) {
	window.open($datei,"_blank","toolbar=0,location=0,directories=0,status=0,scrollbars=" + $sb + ",resizable=" + $resize + ",copyhistory=0,menubar=0,width=" + $w + ",height=" + $h)
}

function SelectAll(theForm,selected) {

	for(var x = 0; x < theForm.elements.length; x++) { 
		
		theForm.elements[x].checked=selected;
	
	}
}

function qr($question, $url) {
	if (confirm($question)) {
		document.location.href = $url
	}
}


function addText($formular, $input, $text){
	document[$formular][$input].value = document[$formular][$input].value + $text;
}




// setOpacity Function
// Variablen: Object, Tranzparenz
function setOpacity(obj, opacity) {
	
	opacity = (opacity == 100)?99.999:opacity;
	
	// IE/Win
  	obj.style.filter = "alpha(opacity:"+opacity+")";

  	// Safari<1.2, Konqueror
 	obj.style.KHTMLOpacity = opacity/100;

  	// Older Mozilla and Firefox
 	obj.style.MozOpacity = opacity/100;

  	// Safari 1.2, newer Firefox and Mozilla, CSS3
   	obj.style.opacity = opacity/100;
  
}


// FadinFunction
// Variablen: Objectname und Tranzparenzstartwert
function fadeIn(objID,opacity) {
 	
 	// Schauen ob überhaupt Object
	if (document.getElementById) {
		// Object holen
		obj = document.getElementById(objID);
		
		// Transparenz setzen
	    if (opacity <= 100) {
	    	// Function aufrufen um Objekt mit Transparenz zu setzen
			setOpacity(obj, opacity);
			// Hochzählen
			opacity += 5;
			// Timeout damit Effekt sichtbar
			window.setTimeout("fadeIn('"+objID+"',"+opacity+")", 10);		
			
			
			
		}
	}
}


//  End -->