<!--

		var img1 = "img/kopf/kopf_bioschweine_wild.jpg"
		var img2 = "img/kopf/kopf_bioschweine_linderoed.jpg"
		var img3 = "img/kopf/kopf_bioschweine_turopoljer.jpg"
		var img4 = "img/kopf/kopf_bioschweine_husum_1.jpg"
		var img5 = "img/kopf/kopf_bioschweine_masken.jpg"
		var img6 = "img/kopf/kopf_bioschweine_sattel.jpg"
		var img7 = "img/kopf/kopf_bioschweine_benth2.jpg"
		var img8 = "img/kopf/kopf_bioschweine_benth1.jpg"
		var img9 = "img/kopf/kopf_bioschweine_mangalitza.jpg"
		
		var randomize = Math.round(Math.random()*9)
		if (randomize == 1){
		newimg1 = img1
		}else if (randomize == 2){
		newimg1 = img2
		}else if (randomize ==3){
		newimg1 = img3
		}else if (randomize == 4){
		newimg1 = img4
		}else if (randomize ==5){
		newimg1 = img5
		}else if (randomize == 6){
		newimg1 = img6
		}else if (randomize ==6){
		newimg1 = img7
		}else if (randomize == 8){
		newimg1 = img8
		}
		else{
		newimg1 = img9
		}
		document.write('<IMG SRC="'+newimg1+'" width="900" height="200" hspace="0" vspace="0" border="0" align="left">')
		
		
// globale Zählervariable
var charsToGo;

function charCounter(charInputSrcName, maxCharCount, outputTargetName) {

   // Zugriffsvariablen festlegen
   var charInputSrc = document.getElementById(charInputSrcName);
   var outputTargetSrc = document.getElementById(outputTargetName);

   if (charInputSrc != null) {
      // Länge des Feldinhaltes prüfen
      if (charInputSrc.value.length <= maxCharCount) {
         // Anzahl Restzeichen berechnen und Zeichenanzeige aktualisieren
         charsToGo = maxCharCount - charInputSrc.value.length;
         outputTargetSrc.innerHTML = '(' + charsToGo + '&nbsp;Zeichen)';
      }
      else 
         // Eingegebenes Zeichen wieder abschneiden
         charInputSrc.value = charInputSrc.value.substring(0, maxCharCount);
         charsToGo = maxCharCount - charInputSrc.value.length;
      }
}

function counterOutput(charInputSrcName, maxCharCount, outputTargetName)
{
   // Zugriffsvariablen festlegen
   var charInputSrc = document.getElementById(charInputSrcName);

   // globale Variable prüfen
   if (charsToGo == null) { 
      // Ausgabewert berechnen
      charsCount = maxCharCount - charInputSrc.value.length; }
   else 
      // Ausgabefeld initialisieren
      charsCount = charsToGo; 
         document.write('<span name=\"' 
            + outputTargetName + '\" id=\"' + outputTargetName +'\">(' 
            + charsCount + '&nbsp;Zeichen)</span>')
}


function OpenWindow(WinWidth,WinHeight,Link,WindowName)
{window.open(Link,WindowName,'toolbar=0,width='+WinWidth+',height='+WinHeight+',location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,top=50,left=350')}

	
		
	//-->
