<SCRIPT LANGUAGE="Javascript">
function OpenWindow(strZiel, strName) {
  if (strName == "Auswahl1") {
    var who=document.forms[0].vnd[document.forms[0].vnd.selectedIndex].text;
    var who_utc=document.forms[0].vnd[document.forms[0].vnd.selectedIndex].value;
  }
  if (strName == "Auswahl2") {
    var who=document.forms[0].bsd[document.forms[0].bsd.selectedIndex].text;
    var who_utc=document.forms[0].bsd[document.forms[0].bsd.selectedIndex].value;
  }
    var elemente = who.split(".");
    var intMonth = elemente[1];
    var intYear = elemente[2].slice(0,4);
	var diff = (screen.width) / 2;
	var xleft = diff -75;
    strZiel = strZiel + "&year=" + intYear + "&month=" + intMonth + "&checked_utc=" + who_utc;
  Test = window.open(strZiel, strName, 'left='+xleft+',top=360,width=250,height=150,scrollbars=no,resizable=no');

}
</SCRIPT>

<script language="JavaScript">
<!--
function abreise(){
    switch  (document.forms[0].mmc.selectedIndex){
        case 0:
            duration = 7;
            break;
        case 1:
            duration = 4;
            break;
        case 2:
            duration = 8;
            break;
        case 3:
            duration = 7;
            break;
        case 4:
            duration = 15;
            break;
        case 5:
            duration = 14;
            break;
        case 6:
            duration = 22;
            break;
        case 7:
            duration = 28;
            break;
    }
    if((document.forms[0].vnd.selectedIndex + duration) <= document.forms[0].bsd.options.length){
        document.forms[0].bsd.selectedIndex = document.forms[0].vnd.selectedIndex +duration;
    }
    else{
        document.forms[0].bsd.selectedIndex = document.forms[0].bsd.options.length-1;
    }
}

//-->
</script>

<script language="JavaScript">
<!--
function printagb(url) {
        fenster = window.open('interface/agb_print.php?page='+url,'AGB','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,copyhistory=0,width=10,height=10');
        self.focus();
}
//-->
</script>

<script language="JavaScript">
<!--
function Go(x){
  if(x == "P"){
    return
  }else{
    if(x == ""){
      self.location.href  = 'tibet.php?ixp=charter&typ=N&stp=1';
    }else{
      if(x == ""){
        self.location.href  = 'tibet.php?ixp=auto&typ=R&stp=1';
      }else{
        self.location.href  = '';
      }
    }
  }
}
//-->
</script>
