function miniBasket()
{
var tablerowcolor = '#F0F0F0';
totprice = 0;

var aPrices = new Array();
var aFromQuants = new Array();
var aToQuants = new Array();

var datum = new Date();

if (parent.theBasket.length>1) {
for (var i = 1; i < parent.theBasket.length; i++)
{
with(parent.theBasket[i])
{
theitem=Item;
thequantity = Quantity; //fulllist.substring(itemstart, itemend);
itemtotal = 0;



iNumberPrices=parseInt(NumberPrices);
aPrices = Prices.split(":");
aFromQuants = FromQuants.split(":");
aToQuants = ToQuants.split(":");

for (var j=1;j<iNumberPrices;j++)
{
if (( parseInt(Quantity) < parseInt(aToQuants[j-1]))
&& (parseInt(Quantity) >= parseInt(aFromQuants[j-1])))
{
theprice=aPrices[j-1];
}
}
if (parseInt(Quantity) >= parseInt(aToQuants[iNumberPrices-1]))
{
theprice=aPrices[iNumberPrices-1];
}


itemtotal = (eval(theprice*thequantity));
temptotal = itemtotal * 100;
totprice = totprice + itemtotal;
if(Attribut1=='') A1=''; else A1=', '+Attribut1;
if(Attribut2=='') A2=''; else A2=', '+Attribut2;
if(Attribut3=='') A3=''; else A3=', '+Attribut3;

itemlist=i;
hilf="";
if (Textin != "") hilf="<br> "+Textin;


}
}

document.writeln('<table BGCOLOR="#f0a500" width="100%" border="0" cellspacing="0" cellpadding="0">');
document.writeln('<tr>');
document.write('<td width="50" nowrap align="left" valign="top">&nbsp;<a href="main.htm" target="Hauptframe" onFocus="if(this.blur)this.blur()"><img src="home.gif" border="0" align="absmiddle" alt="Home"></a>');
document.write('&nbsp;<a href="basket.htm" target="Hauptframe" onFocus="if(this.blur)this.blur()"><img src="question.gif" border="0" align="absmiddle" alt="Warenkorb anzeigen"></a>');
// Create unique transaction number
mydate = String(datum.getDate());
if (mydate.length<2) {
mydate = "0" +mydate;
}
mymonth = String(datum.getMonth());
if (mymonth.length<2) {
mymonth = "0" +mymonth;
}
myyear = String(datum.getYear());
if (myyear.length<4) {
myyear = String(1900+datum.getYear());
}
myhours = String(datum.getHours()); if (myhours.length<2)
{
myhours = "0" +myhours;
}
parent.pid = mydate+mymonth+myyear+myhours+'0663136758514C47244254117470111303167564'+String(datum.getMinutes())+String(datum.getSeconds())+String(Math.round(Math.random()*9999));

document.writeln('</td>');
document.writeln('<td width="200" nowrap align="left" valign="top" nowrap>&nbsp;');
//       document.writeln('<a class="mu" href="basket.htm" target="Hauptframe">'+(parent.theBasket.length-1)+ ' '+parent.Loc_InBasket+'</a>');
document.writeln('</td>');



document.write('<td align="right" valign="top" nowrap>&nbsp;');
/*       document.write('<b>EUR ');
document.write(parent.alterError(totprice)+'</b>');



*/
document.writeln('</td>');
document.writeln('<td align="right"><a class="mu2" href="conditions.htm" target="Hauptframe">AGB</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="imprint.htm" target="Hauptframe">Impressum</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="sitemap.htm" target="Hauptframe">Sitemap</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="kontakt.htm" target="Hauptframe">E-Mail</a>&nbsp;&nbsp;</td>');
document.writeln('</tr>');
document.writeln('</table>');

}
else {

document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.writeln('<tr nowrap>'); // BGCOLOR="#C0C0C0"
document.write('<td width="50" nowrap align="left" valign="top">&nbsp;<a href="main.htm" target="Hauptframe" onFocus="if(this.blur)this.blur()"><img src="home.gif" border="0" align="absmiddle" alt="Home"></a>');
document.write('&nbsp;<a href="basket.htm" target="Hauptframe" onFocus="if(this.blur)this.blur()"><img src="question.gif" border="0" align="absmiddle" alt="Warenkorb anzeigen"></a>');
document.writeln('</td>');
document.writeln('<td width="200" class="preis" nowrap align="left" valign="top">&nbsp;');//+parent.Loc_BasketEmpty
document.writeln('</td>');
document.writeln('<td nowrap align="right" valign="top">&nbsp;</td>');
document.writeln('<td align="right"><a class="mu2" href="conditions.htm" target="Hauptframe">AGB</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="imprint.htm" target="Hauptframe">Impressum</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="sitemap.htm" target="Hauptframe">Sitemap</a>');
document.writeln('&nbsp;|&nbsp;<a class="mu2" href="kontakt.htm" target="Hauptframe">E-Mail</a>&nbsp;&nbsp;</td>');
document.writeln('</tr>');
document.writeln('</table>');
}





}

function displaybuy(){
         dis = window.open("buypopup.htm","my","toolbar=0,scrollbars, resizable=1,status=no,width=700, height=500 innerHeight=500,innerWidth=700,outerHeight=500,outerwidth=700");
         dis.focus();
       }

