

// **********************************************************************
// **********************************************************************
// ***** SHOP                                        ********************
// **********************************************************************
// **********************************************************************

function shop_meinkonto(kat)
{
theurl = sslurl+"shop/meinkonto.php?kategorie=meinkonto";

if (kat)
	theurl += "&bezug="+kat;
	
document.location.href = theurl;
}

function shop_neueskonto()
{
document.location.href = sslurl+"shop/neueskonto.php?kategorie=neueskonto";
}

function shop_pwform()
{
document.shop_form.submit();
}


function shop_bestellen()
{
document.location.href = sslurl+"shop/bestellen.php"
}

function shop_wkadd (anr,pfad)
{
stueck = document.getElementById("wkanr"+anr).value;

theurl2 = "";
if (document.getElementById("shopcnr"))
	theurl2 = "&shopcnr="+document.getElementById("shopcnr").value;
if (document.getElementById("shopgnr"))
	theurl2 += "&shopgnr="+document.getElementById("shopgnr").value;

theurl2 += "&kategorie="+pfad
theurl = baseurl+"shop/index.php?shop_sadd=1&wk_anr="+anr+"&wk_stck="+stueck+theurl2;

document.location.href = theurl;
}

function shop_uebernehmen_la ()
{
document.shop_form.submit();
}

function shop_abmelden ()
{
document.getElementById("shop_abmelden").value = 1;
document.shop_form.submit();
}

function shop_uebernehmen ()
{
document.shop_form.submit();
}


function shop_gotostep2 ()
{
document.getElementById("shop_konto").value = "ja";
document.getElementById("shop_form").submit();
}

function shop_gotostep3 ()
{
document.getElementById("uebersicht").value = 1;
document.getElementById("anschrift").value = 0;
document.shop_form.submit();
}

function shop_registrieren ()
{
document.getElementById("shop_konto").value = "nein";
document.shop_form.submit();
}

function shop_kontoerstellen ()
{
document.shop_form.submit();
}



function shop_edit_warenkorb(gnr,cnr)
{
theurl = baseurl+"shop/index.php?kategorie=warenkorb";
/*
if (gnr > 0)
	theurl = theurl + "&shopgnr="+gnr;
if (cnr > 0)
	theurl = theurl + "&shopcnr="+cnr;
*/
document.location.href = theurl;
}

function shop_gotostep4 ()
{
document.shop_form.submit();
}

function shop_change_cat(catnr)
{
document.location.href = baseurl+"shop/index.php?shopcnr="+catnr
}

function shop_change_group(gnr)
{
document.location.href = baseurl+"shop/index.php?kategorie=shop&shopgnr="+gnr
}

function shop_open_artikel(cnr,anr)
{
fenster_2 = window.open ("artikel_detail.php?shopcnr="+cnr+"&shopanr="+anr,"fenster2","scrollbars=yes,resizable=yes,menubar=no,status=no,width=550,height=510");		
fenster_2.focus ();
}

function shop_open_artikelfoto(cnr,anr,x,y)
{
x += 35;
y += 95;
x = 550;
y = 510;
fenster_2 = window.open ("artikel_detail_foto.php?shopcnr="+cnr+"&shopanr="+anr,"fenster2","scrollbars=yes,resizable=yes,menubar=no,status=no,width="+x+",height="+y);
fenster_2.focus ();
}

function switch_container(objekt)
{
if (document.getElementById(objekt).style.display == "none")
	document.getElementById(objekt).style.display = "inline";
else
	document.getElementById(objekt).style.display = "none";
}
