
function send() {
	all = document.getElementById("all").value.toLowerCase();
	mip = document.getElementById("mip").value;
	map = document.getElementById("map").value;
	document.getElementById("clr").value = "";
	ziel = "/produkte/mode/all-" + all;
	if (mip.length > 0) ziel +="/mip-" + mip;
	if (map.length > 0) ziel +="/map-" + map;
	ziel += "/";
	window.location.href = ziel;
}

function sendNoResetHidden() {
	all = document.getElementById("all").value.toLowerCase();
	mip = document.getElementById("mip").value;
	map = document.getElementById("map").value;
	clr = document.getElementById("clr").value;
	ziel = "/produkte/mode/all-" + all;
	if (clr.length > 0) ziel +="/clr-" + clr;
	if (mip.length > 0) ziel +="/mip-" + mip;
	if (map.length > 0) ziel +="/map-" + map;
	ziel += "/";
	window.location.href = ziel;
}

function sColor(clr) {
 document.getElementById("clr").value = clr;
 sendNoResetHidden();
}

function sendSimple() {
	all = document.getElementById("all").value.toLowerCase();
	ziel = "/produkte/mode/all-" + all;
	ziel += "/";
	window.location.href = ziel;
}



function mapSearch(map) {
	document.getElementById("map").value= map;
	document.getElementById("mip").value="";
	send();
}

function mipSearch(mip) {
	document.getElementById("mip").value= mip;
	document.getElementById("map").value="";
	send();
}

function layout() {
 img = document.getElementsByTagName("td");
 c =0;
 hit =0;
 while(img[c]) {
	if (img[c].className == "img") {
		an = document.createElement("a");
		an.href="/produkte/co?d=" + d	+ "&l=" + trgt[hit++];
		an.title="...direkt zum Angebot!";
		an.target="_blank";
		an.className = "co";
		t1 = img[c].removeChild(img[c].firstChild);
		an.appendChild(t1);
		img[c].appendChild(an);
	}
	c++;
 }

 c=0;
 div = document.getElementsByTagName("div");
 hit =0;
 while(div[c]) {
	if (div[c].className== "d") {
		an = document.createElement("a");
		an.href="/produkte/co?d=" + d	+ "&l=" + trgt[hit++];
		an.title="...direkt zum Angebot!";
		an.target="_blank";
		an.className = "co";
		t1 = div[c].removeChild(div[c].firstChild);
		an.appendChild(t1);
		t2 = div[c].removeChild(div[c].firstChild);
		an.appendChild(t2);
		div[c].appendChild(an);
		spl = document.createElement("span");
		spl.appendChild(document.createTextNode("...zum Angebot >>"));
		spl.className = "ttop";
		an.appendChild(spl);
	} else if (div[c].className == "p") {
		an = document.createElement("a");
		an.href="#top";
		an.className ="ttop";
		lt = document.createTextNode("zum Seitenanfang >>");
		an.appendChild(lt);
		div[c].appendChild(an);	
	}
	c++;
 }
}

function co(doc, time) {
	window.location.href= "/produkte/mode/clickout?doc=" + doc + "&t=" + time;
}
