function wechsel(arr,n)
{
//if(n < arr.length - 1) {
var a = n;
var b = n +1;
if( b == arr.length){
b = 0;
}
if(document.getElementById(arr[a]) != undefined){
//alert(arr[n]);
// document.getElementById(arr[a]).style.display = 'none';
// document.getElementById(arr[b]).style.display = 'block';
// slideOut(arr[b],arr[a],0,250,1);
// slideOutVertical(arr[b],arr[a],0,950,2);
fadeIn(arr[b],arr[a],0,1,0.01);
}
setTimeout(function() {wechsel(arr, b);},10000);
// }
}
function fadeIn(elmIn,elmOut,hIn,hOut,steps)
{
if(elmOut!=elmIn){
var newhOut = hOut - steps;
var newhIn = hIn + steps;
document.getElementById(elmOut).style.opacity=newhOut;
document.getElementById(elmIn).style.opacity=newhIn;
if(newhOut>0){
setTimeout("fadeIn('" + elmIn + "','" + elmOut + "'," + newhIn +"," + newhOut +"," + steps +")",'20');
}
}
}
function slideOutVertical(elmIn,elmOut,hIn,hOut,steps)
{
if(elmOut!=elmIn){
var newhOut = hOut - steps;
var newhIn = hIn + steps;
document.getElementById(elmOut).style.width=newhOut +"px";
document.getElementById(elmIn).style.width=newhIn +"px";
if(newhOut>0){
setTimeout("slideOutVertical('" + elmIn + "','" + elmOut + "'," + newhIn +"," + newhOut +"," + steps +")",'0');
}
}
}
function slideOut(elmIn,elmOut,hIn,hOut,steps)
{
if(elmOut!=elmIn){
var newhOut = hOut - steps;
var newhIn = hIn + steps;
document.getElementById(elmOut).style.height=newhOut +"px";
document.getElementById(elmIn).style.height=newhIn +"px";
if(newhOut>0){
setTimeout("slideOut('" + elmIn + "','" + elmOut + "'," + newhIn +"," + newhOut +"," + steps +")",'0');
}
}
}
function lichtbox(width,height,image)
{
var width=width ;
var height=height;
var h=(height + 40) / 2;
var w = (width +40) / 2;
var close='X';
//alert('show bild');
document.getElementById('lichtbox').style.margin='-' + h +'px 0 0 -' + w +'px';
//document.getElementById('lichtbox').style.margin-top='-' + (height+40) +'px';
document.getElementById('lichtbox').style.width='' + (width+80) +'px';
document.getElementById('lichtbox').style.height='' + (height+80) +'px';
document.getElementById('lichtbox').innerHTML='' + close + '';
document.getElementById('bildbox').style.display='block';
document.getElementById('lichtbox').style.display='block';
}
function istEmail(elm)
{
if (elm.value.indexOf("@") != "-1" &&
elm.value.indexOf(".") != "-1") {
return false;
}
else {
return true;
}
}
function is_ziffer(chStr)
{
var ok=true;
for(i=0;i "9"){
ok = false;}
}
return ok;
}
function checkForm(FormName)
{
for(i=0; i