  window.defaultStatus="";
  Fensterchen = new Array();               //erzeugt ein Array in das alle Fenster gespeichert werden
  FensterOffen = new Array();              //Array speichert, ob Fenster offen oder geschlossen ist
  zufallzahlertopderwoche = 0;

  
function anzeige_topderwoche(bereich,text1,text2,preis,link,text3,bild,preisinfo){
 var inhalt = "";
 if(text3.length > 1){
  inhalt = "<tr><td colspan=3 bgcolor='#ffffff'>";
  inhalt += '<span style="font-size:13px; color:#c10000; font-weight:bold">' + text3 +'</span>';  
  inhalt += "</td></tr>";  
 }
 inhalt += "<tr><td colspan=3 bgcolor='#ffffff'>";

 if(bild.length > 1){
  inhalt += "<a href='" + link + "' ><img src='";
/*
var Suche = /(http)/g;
var Ergebnis = Suche.test(bild);
if (Ergebnis == false)
{
  inhalt += "http://www.autoteile-meile.de/img/mini/";

}
*/
  inhalt += bild + "' border=0 align='left'  hspace='3'></a>";
 }
 inhalt += "<span class='klein1'>";        
 inhalt += text1 + "<br clear='all'>";   
 if(text2.length > 1){
  inhalt +=  text2;      
 }
 inhalt += "</span>";
 inhalt += "</td>";      
 inhalt += "</tr>"; 
 inhalt += "<tr><td colspan=2 bgcolor='#ffffff'>"; 
 inhalt += "<nobr><span class='klein1'>jetzt nur <span class='preis1'>" + preis + "</span></span></norbr>"; 
 inhalt += "</td>"; 
 inhalt += "<td align='right' bgcolor='#ffffff'>"; 
 var img = "http://www.autoteile-meile.de/img/pfeil_home.gif";
 if(bereich == 'autoersatzteile'){
  img = "http://www.autoteile-meile.de/img/pfeil_blau.gif";
 }
 else if(bereich == 'autotuning'){
  img = "http://www.autoteile-meile.de/img/pfeil_hellgruen.gif";
 }
 else if(bereich == 'schneeketten'){
  img = "http://www.autoteile-meile.de/img/pfeil_gruen.gif";
 }
 else if(bereich == 'pottkat'){
  img = "http://www.autoteile-meile.de/img/pfeil_dunkelgruen.gif";
 }
 inhalt += "<a href='" + link + "' > <img src='" + img + "' border=0></a>";      
 inhalt += "</tr>";   
 inhalt += "</td>";      
 inhalt += "</tr>";   
 if(preisinfo.length > 1){
  inhalt += "<tr><td colspan=3 bgcolor='#ffffff'><span class='klein1'>" + preisinfo + "</span></td></tr>"; 
  
 }
 inhalt += "<tr><td colspan=3 bgcolor='#ffffff'><small>&nbsp;</small></td></tr>";                   
 return inhalt;
}  
  
/* &ouml;ffnet Fenster mit Parametern und setzt Fensterstatus */

function NeuesFenster(nummer,datei,name,hoehe,breite){
  Fensterchen[nummer] = window.open(datei,name,"width="+breite+",height="+hoehe);
  //FensterOffen[nummer] = 1;
  Fensterchen[nummer].focus();
}

function OffeneSchliessen(){               // &uuml;berpr&uuml;ft, welches Fenster offen ist, und ruft Schlie&szlig;funktion auf
  for(i = 0; i < Fensterchen.length; i++)  // alle Fenster werden gepr&uuml;ft
    if(FensterOffen[i] == 1)               // Satus des Fensters wird gepr&uuml;ft, 1 = offen / 0 = geschlossen
      FensterSchliessen(i);                // ruft f&uuml;r offenes Fenster Schlie&szlig;funktion auf.
}

function FensterSchliessen(welches){       // Schlie&szlig;t Fenster und &auml;ndert Status
   if(!Fensterchen[welches].closed)        // &uuml;berpr&uuml;ft ob Fenster noch offen(k&ouml;nnte auch von Hand geschlossen worden sein
     Fensterchen[welches].close();         // schlie&szlig;t Fenster
  FensterOffen[welches] = 0;               // setzt Status auf 0, auch wenn Fenster bereits von Hand geschlossen wurde
}

function NeuesFenster2(nummer,url){
  
  Fensterchen[nummer] = window.open(url,"Bildanzeige","status=no,resizable=yes,width=600,height=600");
  FensterOffen[nummer] = 1;
  Fensterchen[nummer].focus();
}

function fixDate(date) {
 var base = new Date(0)
 var skew = base.getTime()
 if (skew > 0)
  date.setTime(date.getTime() - skew)
}

function setzen_Artikelcookie(artikelid,bezeichung){
 var artikeloeschen = "";
 var zaehlercookie = 0;
 var setcookieok = 1;
 bezeichung = bezeichung.replace(/<br><span.*span>/,'');
 if(document.cookie){
  //text +=  " 1 - ";
  var werte = document.cookie.split("; ");
  for (var i = 0; i < werte.length; ++i){
   var inhalt = werte[i].split("=");
   //text +=  " 2 - ";
     if(inhalt[0].match(/artikel(.*)/)){
	  if(zaehlercookie == 0){
	   artikeloeschen = inhalt[0];
	  }
	  zaehlercookie = zaehlercookie + 1;
	  text +=  " => ZAHLER: ";
	  text +=  zaehlercookie;
	  if(RegExp.$1 == artikelid){
	   artikeloeschen = inhalt[0];
	  }
	 }
    }
	//text +=  " 3 - ";
	if(zaehlercookie < 10){
	 artikeloeschen = "";
	}
	//text +=  " 4 - ";
	if(artikeloeschen != ""){
	 var exp = new Date();
	 fixDate(exp);
	 exp.setTime(exp.getTime() - 10000);
	 //text += exp.toGMTString();
	 //text += artikeloeschen
	 setCookie(artikeloeschen, '', exp,"/");
	}
   }
   //text +=  " 5 - ";
   var now = new Date();
   fixDate(now);
   now.setTime(now.getTime() + 150 * 24 * 60 * 60 * 1000);
   var cookiename = "artikel" + artikelid;
  setCookie(cookiename, bezeichung, now,"/");
  return 1;
}

function AnzeigeDetails(nummer,datei,name,hoehe,breite,artikelid,bezeichung,ansicht){
  var text =  " ";
  if(!artikelid || !bezeichung){}
  else{
   var artikeliduebergabe = artikelid;
   if(ansicht == 'pottkat'){
    artikeliduebergabe = 'pott' + artikeliduebergabe;
   }
   var cookieok = setzen_Artikelcookie(artikeliduebergabe,bezeichung);
   if(cookieok == 1){
    Fensterchen[nummer] = window.open('','name',"width="+breite+",height="+hoehe);
    Fensterchen[nummer].document.writeln(text);
    Fensterchen[nummer].close();
   }
  }
  Fensterchen[nummer] = window.open(datei,name,"width="+breite+",height="+hoehe+",scrollbars=yes");
  //FensterOffen[nummer] = 1;
  Fensterchen[nummer].focus();
}

function decodestringhex (text){
 if(text.decodeURI){
  text = text.decodeURI;	
 }
 else{
  text = text.replace(/%20/g, " ");
  text = text.replace(/%5D/g, "]");
  text = text.replace(/%5B/g, "[");
  text = text.replace(/%29/g, ")");
  text = text.replace(/%28/g, "(");
  text = text.replace(/%2F/g, "/");
  text = text.replace(/%D6/g, "Ö");
  text = text.replace(/%FC/g, "ü");
  text = text.replace(/%2C/g, ",");
  text = text.replace(/%F6/g, "ö");
  text = text.replace(/%E4/g, "ä");
  text = text.replace(/%3D/g, "=");
  text = text.replace(/%DF/g, "ß");
  text = text.replace(/%26/g, "&");
  text = text.replace(/%3B/g, ";");
  text = text.replace(/%DC/g, "Ü");
  text = text.replace(/%C4/g, "Ä");
  text = text.replace(/%2B/g, "/");
  text = text.replace(/%3A/g, ":");
 }
 return text;
}

function setCookie(name, value, expires, path, domain, secure) {
 var caution = false;
 var curCookie = name + "=" + escape(value) +
   ((expires) ? "; expires=" + expires.toGMTString() : "") +
  ((path) ? "; path=" + path : "") +
  ((domain) ? "; domain=" + domain : "") +
  ((secure) ? "; secure" : "")
 if (!caution || (name + "=" + escape(value)).length <= 4000)
  document.cookie = curCookie
 else
  if (confirm("Cookie exceeds 4KB and will be cut!"))
   document.cookie = curCookie
   //document.write("Du hast also von " + name + " hierher gefunden");
}

function Suchenachletztenartikel(cartid,art){
 var text = "";
 if(cartid == "XXXd65fsd67354uj7sdfhji3489XXX7dfs7"){
  cartid = "";
 }
 var basiscolor = '#4076A5';
 if(art == 'autotuning'){
  basiscolor = '#A19E00';
 }
 else if(art == 'motoroel'){
  basiscolor = '#7E6261';
 }
 else if(art == 'pottkat'){
  basiscolor = '#004040';
 }
 else if(art == 'autozubehoer'){
  basiscolor = '#207D3B';
 }
 else if(art == 'home'){
  basiscolor = '#4C4C4C';
 }
 if(document.cookie){
  var gemerke = new Array();
  //text = document.cookie;
  var werte = document.cookie.split("; ");
  for (var i = 0; i < werte.length; ++i){
   var inhalt = werte[i].split("=");
   if(inhalt[0].match(/artikel(.*)/)){
    var artikelid = RegExp.$1;
    inhalt[1] = decodestringhex(inhalt[1]);
    //inhalt[1] = "XXX";
    var zeile = "";
	var link = "";
	var domain = window.location.href;
	var dsco = 0;
	var language = 'de';
	if(domain.match(/(\.at$|\.at\/)|(delti.com:8802)/)){
	 dsco = 2;
	}
	else if(domain.match(/(\.ch$|\.ch\/)|(delti.com:8804)/)){
	 dsco = 4;
	}
	if(artikelid.match(/^high_performer|^bp|^castrol|^highperformer|^liquimoly|^fuchs|^mobil|^gm_/i)){
	 if(cartid == ""){
	  link = "<a href='/motoroel/" + artikelid + ".html'>";
	 }
	 else{
	  link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=motoroel/" + artikelid + ".html'>";
	 }
	}
	else if(artikelid.match(/^rud_/i) || artikelid.match(/^maggi_/i) || artikelid.match(/^eufab_/i)){
	 if(cartid == ""){
	  link = "<a href='/autozubehoer/" + artikelid + "'>";
	 }
	 else{
	  link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=autozubehoer/" + artikelid + "'>";
	 }
	}
    else if(artikelid.match(/^eibach|^koni|^\/autotuning|^autotuning/i)){
	 artikelid = artikelid.replace(/^\/autotuning/, "");
	 artikelid = artikelid.replace(/^autotuning/, "");
	 artikelid = artikelid.replace(/^\//, "");
	 //if(cartid == ""){
	  
	  //link = "<a href='/autotuning/" + artikelid + "'>";
	 //}
	 //else{
	  link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=autotuning/" + artikelid + "'>";
	 //}
	}
    else if(artikelid.match(/^pottkat/i)){
     link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=" + artikelid + "'>";
    }
	else if(artikelid.match(/^pott/i)){
	  artikelid = artikelid.replace(/^pott/, "");
	  link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&ansicht=pottkat&language=" + language + "&cart_id=" + cartid + "&warengruppe=0&searchmode=v&site=schalldaempfersuche_nummer.html&maxartikel=25&suchtyp=lfd&suchwert="+artikelid +"&anzeige=tab'>";

	}
    else if(artikelid.match(/^autozubehoer/i)){
	 artikelid = artikelid.replace(/^\/autozubehoer/, "");
	 artikelid = artikelid.replace(/^autozubehoer/, "");
	 artikelid = artikelid.replace(/^\//, "");
	 if(artikelid.match(/^ZUBEHOER/i)){
	  artikelid = "autozubehoerdetails.html&nummer=" + artikelid;
	 }
	 else{
	  artikelid = "spezialangebotedetails.html&nummer=" + artikelid;
	 }
     link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=" + artikelid + "'>";
    }
	else{
	 link = "<a href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&warengruppe=0&searchmode=v&site=artikelsuche_nummer.html&maxartikel=25&suchtyp=lfd&suchwert="+artikelid +"&anzeige=tab'>";
	}
	zeile = "<br><span class='daten'>"+ link + inhalt[1]+ "</a></span>";
	if(!gemerke.push){
	 var i = 0;
	 i = gemerke.length;
	 gemerke[i] = zeile;
        }
        else{
         gemerke.push(zeile);
        }
	//var element = gemerke.length;
	//element = element - 1;
	//gemerke[element] = zeile;
   }
  }
  //text = "";
  if(gemerke.length > 0){
   gemerke.reverse();
   text += "<table width='150'>"; 
   text += "<tr><td bgcolor='" + basiscolor +"'>"; 
   text += "<img src='/img/merke.gif' width='16' height='14' border='0' alt=''><span class='ueberschrift'>Merkbox</span>"; 
   text += "</td></tr>"; 
   text += "<tr><td class='tb'><span class='ueberschrift2'>K&uuml;rzlich angesehene Produkte:</span>"; 
   if(gemerke.length > 10){
    gemerke.length = 10;
   }
   for (var i = 0; i < gemerke.length; ++i){
    if(gemerke[i] != "" && gemerke[i] != ","){
     text += gemerke[i];
    }
   }
   text += "<br>&nbsp;</td></tr>"; 
   text += "</table>"; 
   text += "<br>";
  }
 }
 return text;
}

function get_correkt_shoplink(url,cartid){
 if(cartid == "XXXd65fsd67354uj7sdfhji3489XXX7dfs7"){
  cartid= "";
 }
 if(cartid != ""){
  var domain = window.location.href;
  var dsco = 0;
  var language = 'de';
  if(domain.match(/(\.at$|\.at\/)|(delti.com:8802)/)){
   dsco = 2;
  }
  else if(domain.match(/(\.ch$|\.ch\/)|(delti.com:8804)/)){
   dsco = 4;
  }
  window.parent.document.location.href='/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=url';
 }
 else{
  window.parent.document.location.href='http://www.autoteile-meile.de/'+ url;
 }
 return false;
}

function Suchenachfahrzeugcookie(cartid,art){
 if(cartid == "XXXd65fsd67354uj7sdfhji3489XXX7dfs7"){
  cartid= "";
 }
 var text = "";
 var domain = window.location.href;
 var dsco = 0;
 var language = 'de';
 if(domain.match(/(\.at$|\.at\/)|(delti.com:8802)/)){
  dsco = 2;
 }
 else if(domain.match(/(\.ch$|\.ch\/)|(delti.com:8804)/)){
  dsco = 4;
 }
 var link = "/cgi-bin/deltiparts.pl?dsco=" + dsco + "&language=" + language + "&cart_id=" + cartid + "&site=";
 var img = "<img src='/img/pfeil_home.gif' width='21' height='13' border='0' >";
 var site = "artikelsuche_kfz.html";
 if(art == "autoersatzteile"){
  img = "<img src='/img/pfeil_blau.gif' width='21' height='13' border='0' >";
 }
 else if(art == "pottkat"){
  img = "<img src='/img/pfeil_dunkelgruen.gif' width='21' height='13' border='0' >";
  site = "katalysator.html";
 }
 else if(art == "pott"){
  img = "<img src='/img/pfeil_dunkelgruen.gif' width='21' height='13' border='0' >";
  site = "schalldaempfersuche_kfz.html";
 }
 //if(cartid == ""){link = "/";}
 text = "<table width='100%'>";
 text = text + "<tr><td>";
 text = text + "<a class='menu' href='" + link  + site +"'>Suche über<br>Fahrzeug</a> ";
 text = text + "<td valign='bottom'><div align='right'>";
 text = text + "<a class='menu1' href='" + link + site +"'>";
 text = text + img;
 text = text + "</a></div>";
 text = text + "</td></tr>";
 text = text + "</table>";
 if(art == "no" || art == "katalysator"){
  text = "";
 }
 if(document.cookie){
  var werte = document.cookie.split("; ");
  for (var i = 0; i < werte.length; ++i){
   var inhalt = werte[i].split("=");
   if(inhalt[0] == "FAHRZEUGID"){
    //inhalt[1] = decodeURI(inhalt[1]);
    //var fahrzeug = inhalt[1].split("|");
	//var defahrzeug = encodeURI(fahrzeug[1]);
	var fahrzeug;
	var defahrzeug;
	if(inhalt[1].match(/%7C/)){
	 fahrzeug = inhalt[1].split("%7C");
	}
	else{
	 fahrzeug = inhalt[1].split("|");
	}
	fahrzeug[1] = decodestringhex(fahrzeug[1]);
	defahrzeug = fahrzeug[1];
    text = "<table bgcolor='#F9F9F9'>";
    text = text + "<tr>";
    text = text + "<td colspan='2'>";
    if(art == "pottkat"){
     var fahrzeugangabe = fahrzeug[0].split("_");
     var schluessel2 = fahrzeugangabe[2].substring(0, 4);
     var schluessel3 = fahrzeugangabe[2].substring(4, 8);
     text = text + "<a class='menu5' href='" + link + "&ansicht=pottkat&suche=katalysator&schluessel2=" + schluessel2 + "&schluessel3=" + schluessel3 + "'>";
     text = text + fahrzeug[1] + "</a>";
    }
    else if(art == "pott"){
     fahrzeug[0] = fahrzeug[0] + "/4/30180";
     text = text + "<a class='menu5' href='" + link + "schalldaempfer/"+ fahrzeug[0] + "/index.html&fahrzeug=" + defahrzeug + "&ansicht=pottkat'>";
     text = text + fahrzeug[1] + "</a>";
	}
    else{
     text = text + "<a class='menu5' href='" + link + "ersatzteil/"+ fahrzeug[0] + "/index.html&fahrzeug=" + defahrzeug + "'>";
     text = text + fahrzeug[1] + "</a>";
    }
    text = text + "</td></tr>";
	text = text + "<tr><td>";
	text = text + "<a class='menu6' href='" + link + site +"'>";
	text = text + "Fahrzeug Auswahl &auml;ndern";
	text = text + "</a>";
	text = text + "</td>";
	text = text + "<td valign='bottom'>";
	text = text + "<div align='right'>";
	text = text + "<a href='" + link + site + "'>";
	text = text + "<img src='/img/pfeil_organge.gif' width='21' height='13' border='0'>";
	text = text + "</a>";
	text = text + "</div>";
	text = text + "</td>";
    text = text + "</tr>";
	text = text + "</table>";
	return text;
   }
  }
 }
 return text;
}
function topframe_tab_over(obj, img_name) {
        obj.style.backgroundImage = "url("+img_name+")";
        obj.childNodes[0].style.color = "#FFFFFF";
        obj.childNodes[0].style.fontWeight = "normal";
}
function topframe_tab_out(obj) {
        obj.style.backgroundImage = "";
        obj.childNodes[0].style.color = "#000000";
        obj.childNodes[0].style.fontWeight = "normal";
}
function topframe_tab_over(obj, img_name) {
        obj.style.backgroundImage = "url("+img_name+")";
        obj.childNodes[0].style.color = "#FFFFFF";
        obj.childNodes[0].style.fontWeight = "normal";
}
function topframe_tab_out(obj) {
        obj.style.backgroundImage = "";
        obj.childNodes[0].style.color = "#000000";
        obj.childNodes[0].style.fontWeight = "normal";
}
 
function suchartChange(art) {
 if (art == 'hersteller') {
  document.suche.suchart[0].checked=true;
 }
 else if(art == 'direktbez'){
  document.suche.suchart[1].checked=true;
 } 
 else if(art == 'motorcode'){
  document.suche.suchart[2].checked=true;
 } 
else if(art == 'schluessel'){
  document.suche.suchart[3].checked=true;
 } 
 else if(art == 'kbanr'){
  document.suche.suchart[4].checked=true;
 } 
}

function suchartChangehidden(art) {
 if (art == 'hersteller') {
  document.suchemenue.suchart.value='v';
 }
 else if(art == 'direktbez'){
  document.suchemenue.suchart.value='b';
 } 
 else if(art == 'motorcode'){
  document.suchemenue.suchart.value='m';
 } 
else if(art == 'schluessel'){
  document.suchemenue.suchart.value='l';
 } 
}

function vormerkenfenster(nummer,cartid,anzahl,beschreibung,einzelpreis,lieferstatus){
 var text = "";
 var domain = window.location.href;
 var dsco = 0;
 var language = 'de';
 var imgordner = "/img/de";
 waehrung = "EUR";
 if(domain.match(/(\.at$|\.at\/)|(delti.com:8802)/)){
  dsco = 2;
  imgordner = "/img/at";
 }
 else if(domain.match(/(\.ch$|\.ch\/)|(delti.com:8804)/)){
  dsco = 4;
  imgordner = "/img/ch";
  waehrung = "CHF";
 }
 text = "<html>";
 text = text + "<head>";
 text = text + "<title>Artikel vormerken - Autoteile-Meile</title>";
 text = text + "<link rel=stylesheet type='text/css' href='/formate.css'>";
 text = text + "<link rel=stylesheet type='text/css' href='/formate.css'>";
 text = text + "</head>";
 text = text + "<body>";
 text = text + "<table width='300'>";
 text = text + "<tr>";
 text = text + "<td colspan='2'><img src='" + imgordner + "/meile_klein.gif' width='114' height='40' border='0' alt=''> </td>";
 text = text + "</tr>";
 text = text + "<tr>";
 text = text + "<td colspan='2'><span class='ueberschrift2'>Sie haben folgenden Artikel vorgemerkt und in Ihren Warenkorb gelegt:<br><br>";
 text = text + "<b>" + beschreibung  + "</b><br>";
 text = text + "Menge: " + anzahl + "<br>";
 
 var gesamtpreis = anzahl * einzelpreis * 100;
 gesamtpreis = Math.round(gesamtpreis);
 gesamtpreis = gesamtpreis / 100;
 einzelpreis = einzelpreis.replace(/\./, ",");
 gesamtpreis = String(gesamtpreis);
 gesamtpreis = gesamtpreis.replace(/\./, ",");
 text = text + "Preis: " +  einzelpreis + " " + waehrung + "<br>";
 text = text + "Gesamtpreis: " + gesamtpreis + " " + waehrung + "<br>";
 var textstatus = "k.A.";
 textstatus = "lieferbar in 1-3 Tagen";
 if(dsco == 2){
  textstatus = "lieferbar in 4-5 Tagen";
 }
 else if(dsco == 4){
  textstatus = "lieferbar in 8 - 10 Tagen";
 }
 if(lieferstatus < 1){
  textstatus = "voraussichtlich in 7 Tagen";
  if(dsco == 2){
   textstatus = "voraussichtlich in 14 Tagen";
  }
  else if(dsco == 4){
   textstatus = "voraussichtlich in 20 Tagen";
  }
 }
 else if(lieferstatus < 3){
  textstatus = "lieferbar voraussichtlich in 1-3 Tagen - unser Bestand ist aber bereits knapp";
  if(dsco == 2){
   textstatus = "lieferbar voraussichtlich in 4-5  Tagen - unser Bestand ist aber bereits knapp";
  }
  else if(dsco == 4){
   textstatus = "lieferbar voraussichtlich in 8 - 10 Tagen - unser Bestand ist aber bereits knapp";
  }
 }
 //text = text + "Lieferzeit: " + textstatus + "<br>";
 text = text + "<br>";
 text = text + "</td>";
 text = text + "</tr>";
 text = text + "<tr bgcolor='#CACACA'>";
 text = text + "<td><a class='menu' href='javascript:window.close();'>Weiter Shoppen >></a>";
 text = text + "</td>";
 text = text + "<td>";
 var link = "/cgi-bin/deltiparts.pl?cart_id="+ cartid + "&dsco=" + dsco + "&language=" + language + "&shoba=kasse";
 text = text +  "<a class='menu' href='javascript:opener.location=\"" + link + "\";window.close();'>Zur Kasse gehen >></a>";
 text = text + "</td>";
 text = text + "</tr>";
 text = text + "</table>";
 text = text + "</body>";
 text = text + "</html>";
 Fensterchen[nummer] = window.open('',"Vormerken","status=no,resizable=yes,width=350,height=350");
 Fensterchen[nummer].document.writeln(text);
 Fensterchen[nummer].document.close();
 Fensterchen[nummer].focus();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  newwin = window.open(theURL,winName,features);
  newwin.focus();
}

function montage(theURL) {
  MM_openBrWindow(theURL,'montage','scrollbars=yes,resizable=yes,width=600,height=500');
}
