var win=null;

window.onerror = nixmachen;
function nixmachen() {
	return true;
}



function team(name){

         settings="width=800,height=600,top=100,left=100,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
         win=window.open("team/"+name+".html","",settings);
	win.focus();
}



function bilder(album){
	settings="width=600,height=500,top=100,left=100,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("http://www.radsport-werdau.de/album/"+album+"/bilder.html","",settings);
	win.focus();
}


function login(){
	settings="width=600,height=230,top=200,left=200,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
         win=window.open("intern.html","",settings);
	win.focus();
}



function login1(){
         settings="width=800,height=600,top=100,left=100,scrollbars=yes,location=no,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes,dependent=no";
         win=window.open("http://intern.radsport-werdau.de","_blank",settings);
	win=window.close("intern.html");
}



function login2(){
	win=window.open("mailto:info@radsport-werdau.de?subject=Zugang - Interner Bereich&body=Hallo, ich benötige den Zugang für den internen Bereich.");
         win=window.close("intern.html");
}



function auswahl(select){
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "leer") {
    select.form.reset();
    top.window.focus();
    return;
  } else {
    if (wert == "ende") {
      select.form.reset();
      top.window.focus();
    } else {
         select.form.reset();
         team(wert);
    }
  }
}



var b = new Array();
var i = 0;

function sponsor()
 {

  for (var j = 0; j <= 13; j++)
  	{
          m=j+1;
          b[j] = new Image(); b[j].src = "images/"+m+".jpg";
         }

  if(i > 13) i = 0;
  document.images[0].src = b[i].src;
  i = i + 1;
  window.setTimeout("sponsor()",1200);
 }



function country (select){
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "leer") {
    select.form.reset();
    top.window.focus();
    return;
  } else {
    if (wert == "ende") {
      select.form.reset();
      top.window.focus();
    } else {
      win=window.open(wert);
      select.form.reset();
      win.focus();
    }
  }
}



function wechsel(){
	myleft=100;
	mytop=100;
	settings="width=835,height=650,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("newsletter/wechsel.html","",settings);
	win.focus();
}
