function RunFoo1() 
{ 
    document.write('<object type=\"application/x-shockwave-flash\" data=\"Movie-Winter-2011.swf\" width=\"550\" height=\"230\" id=\"flashbanner\" style=\"-moz-user-focus:ignore\">\n'); 
    document.write('<param name=\"movie\" value=\"Movie-Winter-2011.swf\" />\n'); 
    document.write('<param name=\"quality\" value=\"high\" />\n'); 
    document.write('<param name=\"wmode\" value=\"transparent\" />\n'); 
    document.write('<param name=\"quality\" value=\"high\" />\n'); 
    document.write('</object>\n'); 
}



/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Modifiziert und bereitgestellt von Bernie Bernies Gif und Javapage
http://www.gifgalerie.purespace.de*/


function NewWindow(mypage,myname,w,h,scroll){
var win = null;

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
//LeftPosition = 0;
//TopPosition = 10;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,resizable=yes,directories=no';
//alert (settings);
win = window.open(mypage,myname,settings);

//alert (win);
//if(win.window.focus){win.window.focus();}
//win.window.onblur=win.window.close;
//win.focus();
} 


function NewWin2(mypage,myname,w,h,scroll,menu) {
var win = null;
var jetzt = new Date();
myname=jetzt;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
//LeftPosition = 0;
//TopPosition = 10;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',menubar='+menu+',toolbar='+menu+',location=no,resizable=yes,directories=no';
win = window.open(mypage,myname,settings);
if(win.window.focus){win.window.focus();}
//win.window.onblur=win.window.close;
}

function NewWindowSwi(mypage,myname,w,h,scroll) {
var win = null;
var jetzt = new Date();
myname=jetzt;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
//LeftPosition = 0;
//TopPosition = 10;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',menubar=no,location=no,resizable=yes,directories=no';
win = window.open(mypage,myname,settings);
//if(win.window.focus){win.window.focus();}
//win.window.onblur=win.window.close;
}

function NewWindowSwi1(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
LeftPosition = (screen.width) ? (screen.width-700)/2 : 0;

TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
TopPosition = (screen.height) ? (screen.height-500)/2 : 0;

//LeftPosition = 0;
//TopPosition = 10;
settings =
'"height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,resizable=yes,directories=no';
win = window.open(mypage,myname,settings);
//win.window.onblur=win.window.close;
}



function chksuche()
  {
  var string=document.suche.search_exp.value;
  
         if(string == "")
    {
     alert("Sie müssen einen Suchbegriff angeben!");
     document.suche.search_exp.focus();
     return false;
    }
  var zeichen=0;
  for (var i=0;i<string.length;i++) {
    if (string.substring(i,i+1)!= " ") {zeichen=zeichen+1;}
  
    }
  if (zeichen == 0)
      {
     alert("Sie müssen einen Suchbegriff angeben!");
     document.suche.search_exp.focus();
     return false;
    }


  if  (zeichen < 3)
   {
  
    alert("Ihr Suchbegriff ist zu kurz (Minimum sind 3 Buchstaben!)");
         document.suche.search_exp.focus();
     return false;
    
  }
  
}

 
