function menu_on(pos) {
	var on  = document.getElementById(pos+"_on");
	var off = document.getElementById(pos+"_off");
	on.style.display  = "block";
	off.style.display  = "none";
}

function menu_off(pos) {
	var on  = document.getElementById(pos+"_on");
	var off = document.getElementById(pos+"_off");
	on.style.display  = "none";
	off.style.display  = "block";
}


function fenster_auf(url,breite,hoehe) {
  window.open(url,"Bild"+breite+hoehe,"scrollbars=yes,width="+breite+",height="+hoehe);
}

function show_pic2(bilds,breite,hoehe,breite_x,hoehe_x) {
  breite2 = breite_x + 120;
  hoehe2 = hoehe_x + 140;
  breite = breite + 30;
  hoehe = hoehe + 30;
  bars="no";
  x = Math.random();
  window.open(bilds,"","scrollbars="+bars+",width="+breite+", height="+hoehe);
}

function check_suche() {
  var suche = document.suchen.textfield.value.replace(/-/g, "_");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/  /g, " ");
  suche = suche.replace(/ /g, "-");
  suche = escape(suche);
  if (suche != "") {
  	url = "/s-"+suche;
  	window.location.href = url;
  }
  else {
	alert("Bitte geben Sie einen Suchbegriff ein!");
  }
}

function send_to_cart(id) {
	if (document.items.elements["art["+id+"]"].value == '') {
		document.items.elements["art["+id+"]"].value = 1;
	}
	document.items.submit();
}

