var thispagename = self.location.href.substring(self.location.href.lastIndexOf('/')+1,self.location.href.length);
if (thispagename == "") { thispagename = "index.php"; }
if (!parent.text) { window.location.href="navi.htm?"+thispagename; }

function change(num,bez,pre,men) {
  with (parent.document) {
       getElementById("num1").innerHTML = num;
       getElementById("bez1").innerHTML = bez;
       getElementById("pre1").innerHTML = parent.sform(pre);
       getElementById("men1").value = men;
       }
  parent.document.getElementById("gray").style.display = "block";
  parent.document.getElementById("order").style.display = "block";
  }

function artikel(artnum,arttxt,arttxt1,price) {
var box = "box"+artnum;
var onc = "'"+artnum+"','"+arttxt1+"','"+price+"',document.itemsform."+box+".value";

  if (artnum.charAt(artnum.length-1)>='0' && artnum.charAt(artnum.length-1)<='9')
     {artnum = artnum+'&nbsp;&nbsp;';}

  document.writeln('<div style="float:left"><b>'+artnum+'&nbsp; &nbsp; '+arttxt+'<\/b><\/div>');
  document.writeln('<div style="text-align:right">');
  document.writeln(  '<b>&euro; '+price+'&nbsp;<\/b>');
  document.writeln(  '<input type="text" name="'+box+'" value="1" size="2" class="inputbox">');
  document.writeln(  '<input type="image" src="pics/basket2.gif" onClick="javascript:change('+onc+')" class="buttons">');
  document.writeln('<\/div>');
}
