function shoplogout(){
	document.forms.shopdaten.logout.value="logout";
	document.forms.shopdaten.submit();
}
function gruppenauswahl(gruppe){
	document.forms.shopdaten.auswahlklasseart.value="";
	document.forms.shopdaten.ID1.value=gruppe;
	document.forms.shopdaten.ID2.value="_";
	document.forms.shopdaten.ID3.value="_";
	document.forms.shopdaten.ID4.value="_";
	document.forms.shopdaten.ID5.value="_";
	document.forms.shopdaten.action = "/kategorie.php";
	document.forms.shopdaten.submit();
}

function produktauswahl(ID1,ID2,ID3,ID4,ID5){
	document.forms.shopdaten.ID1.value=ID1;
	document.forms.shopdaten.ID2.value=ID2;
	document.forms.shopdaten.ID3.value=ID3;
	document.forms.shopdaten.ID4.value=ID4;
	document.forms.shopdaten.ID5.value=ID5;
	document.forms.shopdaten.action = "/kategorie.php";
	document.forms.shopdaten.submit();
}

function addtowk(artnr){
	document.forms.shopdaten.action = "/warenkorb/indenWK.php";
	document.forms.shopdaten.arttowk.value=artnr;
	document.forms.shopdaten.submit();
}
function addtowkfenster(artnr){
	document.forms.shopdaten.action = "/warenkorb/indenWK.php";
	//document.forms.shopdaten.arttowk.value=artnr;
	document.forms.shopdaten.submit();
}



function resetaddtowk(){
	document.forms.shopdaten.arttowk.value="";
}

function zumwk(){
	document.forms.shopdaten.action = "/warenkorb/warenkorb.php";
	document.forms.shopdaten.submit();
}

function wkweiter1(){
	document.forms.shopdaten.wk_quellurl.value="/warenkorb/warenkorb1.php";
	document.forms.shopdaten.action = "/warenkorb/mengeneditWK.php";
	document.forms.shopdaten.submit();
}
function wkweiter2(){
	document.forms.shopdaten.wk_quellurl.value="/warenkorb/warenkorb2.php";
	document.forms.shopdaten.action = "/warenkorb/zuWK.php";
	document.forms.shopdaten.submit();
}
function wkabsenden(){
	document.forms.shopdaten.wk_quellurl.value="/warenkorb/bestellbestaetigung.php";
	document.forms.shopdaten.action = "/warenkorb/WKzuBEST.php";
	document.forms.shopdaten.submit();
}

function wkaktualisieren(){
	document.forms.shopdaten.action = "/warenkorb/mengeneditWK.php";
	document.forms.shopdaten.submit();
}
function wkposdel(wert){
		document.forms["shopdaten"].elements["menge["+wert+"]"].value = 0;
		document.forms.shopdaten.action = "/warenkorb/mengeneditWK.php";
		document.forms.shopdaten.submit();
}

function leerenwk(){
	document.forms.shopdaten.wkleeren.value="1";
	document.forms.shopdaten.action = "/warenkorb/mengeneditWK.php";
	document.forms.shopdaten.submit();
}
// Menu
function kundenadmin(){
	document.forms.shopdaten.action = "/_admin/kundenliste.php";
	document.forms.shopdaten.submit();
}
function anmeldungenadmin(){
	document.forms.shopdaten.action = "/_admin/anmeldungenliste.php";
	document.forms.shopdaten.submit();
}
function kundebestellungen(){
	document.forms.shopdaten.action = "/meinedaten/bestellungen.php";
	document.forms.shopdaten.submit();
}
function adminbestellungen(){
	document.forms.shopdaten.action = "bestellungenliste.php";
	document.forms.shopdaten.submit();
}
function kundenbestellungdetail(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "/meinedaten/bestellungendetail.php";
	document.forms.shopdaten.submit();
}
function adminbestellungdetail(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "bestellungendetail.php";
	document.forms.shopdaten.submit();
}
function adminbenutzerdetail(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "benutzerdetail.php";
	document.forms.shopdaten.submit();
}
function adressedetail(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "/meinedaten/adressdetail.php";
	document.forms.shopdaten.submit();
}
function adressedel(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "/meinedaten/adressdel.php";
	document.forms.shopdaten.submit();
}


function anmeldungdetail(id){
	document.forms.shopdaten.detailid.value=id;
	document.forms.shopdaten.action = "anmeldungendetail.php";
	document.forms.shopdaten.submit();
}

function kundendetail(id){
	document.forms.shopdaten.admkunde.value=id;
	document.forms.shopdaten.action = "kundendetail.php";
	document.forms.shopdaten.submit();
}


function einblenden(wert) {
 if (document.getElementById(wert).style.display=='none') {
  document.getElementById(wert).style.display='block';
 }
 else {
  document.getElementById(wert).style.display='none';
 }
}

function einblendenmenge(wert) {
 if (document.getElementById("mengendiv").style.visibility=='hidden') {
  document.getElementById("mengendiv").style.visibility='visible';
 }
 else {
  document.getElementById("mengendiv").style.visibility='hidden';
 }
}
 
function zuform(wert){
	document.forms.shopdaten.action = "/meinedaten/"+wert;
	document.forms.shopdaten.submit();
}

function zuformadm(wert){
	document.forms.shopdaten.action = wert;
	document.forms.shopdaten.submit();
}


function drucken(){
	document.forms.shopdaten.action = document.forms.shopdaten.wk_quellurl.value;
	document.forms.shopdaten.drucken.value=1;
	document.forms.shopdaten.target = "_blank";
	document.forms.shopdaten.submit();
	document.forms.shopdaten.drucken.value=0;
	document.forms.shopdaten.target = "_self";
}

function druck(){
	document.forms.shopdaten.action = document.forms.shopdaten.wk_quellurl.value;
	document.forms.shopdaten.drucken.value=1;
	document.forms.shopdaten.target = "_blank";
	document.forms.shopdaten.submit();
	document.forms.shopdaten.drucken.value=0;
	document.forms.shopdaten.target = "_self";
}

function kundenfreischalten(){
	document.forms.shopdaten.wk_quellurl.value="/_admin/kundenliste.php";
	document.forms.shopdaten.action = "/_admin/ANMzuKUNDE.php";
	document.forms.shopdaten.submit();
}

function auswahlklassewechseln(){
	if(document.forms.shopdaten.auswahlklasseart.value=="ohne"){
		document.forms.shopdaten.auswahlklasseart.value="mit";
	}
	else{
		document.forms.shopdaten.auswahlklasseart.value="ohne";
	}
	document.forms.shopdaten.submit();
}

function auswahlklasseanzeigenohne(){
	document.forms.shopdaten.auswahlklasseart.value="ohne";
	document.forms.shopdaten.submit();
}
function auswahlklasseanzeigenmit(){
	document.forms.shopdaten.auswahlklasseart.value="mit";
	document.forms.shopdaten.submit();
}



function auswahlklassenwechseln(){
	if(document.forms.shopdaten.auswahlklasseart.value=="ohnen"){
		document.forms.shopdaten.auswahlklasseart.value="mitn";
	}
	else{
		document.forms.shopdaten.auswahlklasseart.value="ohnen";
	}
	document.forms.shopdaten.submit();
}

function auswahlklasseloeschen(){
	document.forms.shopdaten.auswahlklasseart.value="";
	document.forms.shopdaten.submit();
}


