

function goto_shop ( wein_cat ) {
	
var a = new Date();
a = new Date(a.getTime() +1000*60*60*24*365);
document.cookie = 'wein_category='+wein_cat+'; expires='+a.toGMTString()+';';   
top.location.href= 'weinshop-top.php?links=weinshop_liste.php&rechts=weinshop_details.php' ; 
} 


function checkQuantity( anzahl_flaschen ) { 
	// alert ( "anzahl_flaschen" + anzahl_flaschen ) ; 
  if ( anzahl_flaschen == 0 ) {
  	alert ( "Bitte tragen Sie die Anzahl Flaschen, die Sie bestellen wollen, in dem Feld Anzahl. " ) ; 
  	return false ; 
  } else {
  	return true ;
  }
} 
  

function select_weinlist() {
   if ( document.getElementById ) {
     block = document.getElementById("wein_select");
  } else {
    block = document.wein_select;
  }
  block.style.zIndex = 10 ;
}



div_names = new Array ( "wein1", "wein2", "wein3" ) ;  
erster_wein = new Array ( "wein_1603.html", "wein_903.html", "wein_1004.html" ) ;  
var aktueller_div = 0 ; 



function next() {
  if ( aktueller_div < 2 ) {
    aktueller_div ++ ; 
    // alert ( " aktueller_div " + aktueller_div ) ; 
  }
  div_zeigen ( aktueller_div ) ; 
}
  
function previous () {
    if ( aktueller_div > 0 ) {
    aktueller_div -- ; 
    // alert ( " aktueller_div " + aktueller_div ) ; 
  }
  div_zeigen ( aktueller_div ) ; 
}
  
function  div_zeigen ( div_nr ) { 

   if ( document.getElementById ) {
     block = document.getElementById("wein1");
  } else {
    block = document.wein1;
  }
  if ( div_nr == 0 ) { 
    block.style.zIndex = 8 ; 
    parent.weinshop_rechts.location.href="wein_1603.html";                 
  } 
  else  block.style.zIndex = 4 ;
//--------------------------------------------------  
   if ( document.getElementById ) {
     block = document.getElementById("wein2");
  } else {
    block = document.wein2;
  }
  if ( div_nr == 1 ) { 
    block.style.zIndex = 8 ; 
    parent.weinshop_rechts.location.href="wein_903.html";                 
  } 
  else  block.style.zIndex = 4 ;
//--------------------------------------------------  
   if ( document.getElementById ) {
     block = document.getElementById("wein3");
  } else {
    block = document.wein3;
  }
  if ( div_nr == 2 ) { 
    block.style.zIndex = 8 ; 
    parent.weinshop_rechts.location.href="wein_1004.html";                 
  } 
  else  block.style.zIndex = 4 ;
  
//--------------------------------------------------  
   if ( document.getElementById ) {
     block = document.getElementById("wein4");
  } else {
    block = document.wein4;
  }
  if ( div_nr == 3 ) { 
    block.style.zIndex = 8 ; 
    parent.weinshop_rechts.location.href="wein_1004.html";                 
  } 
  else  block.style.zIndex = 4 ;
  
}


   function goToPage ( URL ) { 

       top.location.href= "weinshop-top.php?" + URL  ;                 
} 

   function leave_weinshop () { 
   	
    var target_page = "links=warnung_weinshop.html&rechts=hinweise.html";

       top.location.href = "weinshop-top.php?" + target_page  ;                 
} 
  
     function goto_home () { 
   	
       top.location.href = "index.php"  ;                 
} 
    
   function zeig_liefer_bedingungen() { 
        var target_page = "links=liefer_bedingungen.html&rechts=hinweise.html";

       top.location.href = "weinshop-top.php?" + target_page  ;                  
   }                                           
   function goto_weinshop() { 
        var target_page = "links=weinshop_willkommen.html&rechts=hinweise.html";

       top.location.href = "weinshop-top.php?" + target_page  ;                  
   }                                           

  
 var infoFenster ; 
  
function infoBox(page,name,boxWidth,boxHeight,scrolling)  { 
  if ( !infoFenster ) {
    infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling);
  } else {
    if ( infoFenster.closed == true ) { 
      infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling); 
    } else { 
      infoFenster.close () ; 
      infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling); 
    }
  }
}


