
function BasketItem(Item,Price,Price1,Price2,Quantity1,Quantity2,Quantity,Attribut0,Attribut1, Attribut2, Attribut3, productvatrate)
{
this.Item = Item;
this.Price=Price;
this.Price1=Price1;
this.Price2=Price2;
this.Quantity1=Quantity1;
this.Quantity2=Quantity2;
this.Quantity=Quantity;
this.Attribut0=Attribut0;
this.Attribut1=Attribut1;
this.Attribut2=Attribut2;
this.Attribut3=Attribut3;
this.productvatrate=productvatrate;
var sum=Item+"$"+Price+"$"+Price1+"$"+Price2+"$"+Quantity1+"$";
this.all=sum+Quantity2+"$"+Quantity+"$"+Attribut0+"$"+Attribut1+"$"+Attribut2+"$"+Attribut3+"$"+productvatrate+"$";
}

theBasket = [new BasketItem("","","","","","","","","","","","","")];

function OrderFormular(formname,formcontent)
{
this.formname = formname;
this.formcontent = formcontent;
}

theOrderFormular = [new OrderFormular("","")];


var date = new Date();
var zeitstempel=date.getTime();
var Vorname="";
var Nachname="";
var Strasse="";
var PLZ="";
var Ort="";
var Land="Deutschland";
var Telefon="";
var Fax="";
var email="";
var Sondervereinbarungen="";
var zahlungsweise="Vorkasse";
var nachn="";
var print1="";
var tmp1=1;
var nachn=0;
var paypal=0;
var vorkasse=1;
var kreditcard=0;
var endpreis="";


var Loc_Article = "Artikel";
var Loc_Quantity = "Menge";
var Loc_PriceEach = "Einzelpreis";
var Loc_ShortVat = "MwSt";
var Loc_PriceTotal = "Gesamtpreis";
var Loc_InEuro = "Dies entspricht einem Preis von";
var Loc_Total = "Total";
var Loc_VAT = "MwSt.";
var Loc_Integer = "Bitte eine ganzzahlige positive Anzahl eingeben!";
var Loc_Remove = "Entfernen";
var Loc_Refresh = "Aktualisieren";
var Loc_RemoveConfirm = "Möchten Sie wirklich alle Artikel aus demEinkaufswagen entfernen?";
var Loc_Discount = "Mengenrabatt";
var Loc_Please = "Bitte ";
var Loc_Select = " auswählen!";
var Loc_Add = "Hinweis:\nDer Artikel befindet sich bereits im Korb.\nSoll die Anzahl addiert werden?\nClicken Sie OK zumAddieren,\nKlicken Sie Abbrechen zum Ersetzen\n";
var Loc_Update = "aktualisieren";
var Loc_Delete = "entfernen";
var Loc_InBasket = " Artikel im Warenkorb";
var Loc_BasketEmpty = "Keine Artikel im Warenkorb";
var Loc_SaveForm = "Möchten Sie, dass sich die Bestellseite Ihre Angaben merkt?";
var Loc_BeforeUnload = "Sie haben Artikel im Warenkorb. Wenn Sie diesen Shop verlassen, wird Ihr Warenkorb geleert.";
var Loc_Postage = "Versandkosten";


function alterError(value)
{

value=parseInt(value*100+0.5);
if (isNaN(value) == true) value = eval('0');
newPounds = String(value).substr(0,String(value).length-2);
if (newPounds == '') newPounds = '0';
if (isNaN(newPounds) == true) newPounds = eval('0');
newPence = String(value).substr(String(value).length-2,2);
if(newPence.length < 2)
newPence="0"+newPence;
if (isNaN(newPence) == true) newPence = eval('0');
if (eval(newPence) == 0) newPence='00';
return(newPounds+'.'+newPence);

}

function miniBasket()
{
var miba = GetCookie("minibasket");
if (miba && miba != "0.00$1"   && miba !="" ) {
var mibafeld = miba.split("$");
var miba_summe=mibafeld[0];
var miba_anzahl=mibafeld[1]-1;
document.write('<div  style="position:fixed;top:9px;left:733px; width:250px; height:36px; z-index:3; " ><table width="100%" border="0"cellspacing="0" cellpadding="4" class="basketsmall">');
document.write('<tr><td  align="center">');
document.write('<a href="buy2.htm" onmouseover="Tip(\'Warenkorb prüfen oder zur Kasse gehen\', ABOVE, true,BORDERWIDTH, 0,BGCOLOR, \'#FFFFFF\',SHADOW, true, SHADOWWIDTH, 7)" >');
document.write('<font size="1" color="#0000FF"><b>im Warenkorb: </b></font>');
document.write('<font size="1">'+miba_anzahl+' Artikel ('+miba_summe+' €)<br>');
document.write('<<< Warenkorb/Kasse >>>');
document.write('<br></font><br></a></td></tr></table></div>');
document.write('<div  style="position:fixed;top:10px;left:730px; width:250px; height:36px; z-index:2; border:0px solid #888;" ><img src="miba.gif" width="250" height="36"></div>');
document.write('<div  style="position:fixed;top:16px;left:734px; width:250px; height:36px; z-index:1; border:0px solid #888;" ><img src="miba_shadow.gif" width="250" height="36"></div>');

}
else {
document.write('<div  style="position:absolute;top:3px;left:730px; width:250px; height:36px; z-index:3; " >');
document.write('<table  width="100%" border="0" cellspacing="0" cellpadding="6" class="basketsmall"><tr><td  align="center" valign="middle">');
document.write('<font size="1" color="#0000FF"><b><br>der Warenkorb</b> ist noch leer</font>');
document.write('</font></td></tr></table></div>');
document.write('<div  style="position:absolute;top:10px;left:730px; width:250px; height:36px; z-index:2; border:0px solid #888;" ><img src="miba_leer.gif" width="250" height="36"></div>');
document.write('<div  style="position:absolute;top:16px;left:734px; width:250px; height:36px; z-index:1; border:0px solid #888;" ><img src="miba_shadow.gif" width="250" height="36"></div>');
}
document.write('<div  style="position:fixed;top:100px;left:730px; width:250px; height:20px; z-index:3; background-color:#66ffcc;"><div style="margin-top:3px; text-align:center;font-size:14px;"><a href="javascript:NeuFenster_u();" title="Übersicht über alle Sonnenschirme"  onclick="javascript:logshops_function(\'Tabelle aller Sonnenschirme\')"><img src="i.jpg" width="13" height="16" style="vertical-align:middle" >  Tabelle aller Sonnenschirme >>></a></div></div>');

}


function NeuFenster_u() {
SetCookie('schalter_i',0);
var url="uebersicht_sonnenschirme.htm#"+product_text;
MeinFenster =window.open('','zweitfenster');
MeinFenster.close()
MeinFenster =window.open(url,'zweitfenster','width=850,height=800,left=140,top=0,scrollbars,resizable=yes,location=yes');
MeinFenster.focus();
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


