//////////////////////// SCRIPTE /////////////////////////
login_intro=0;
var login=1;
var nav=0;
var club_win=0;
var lastname=1;
var link_click=0;
var klasse_select=1;
pos_fach=57;
fach_select=pos_fach;
var FELD=new Array();
var SCREEN_SKIN=new Array();
var QUERY=new Array();
var ORDER_VALUE=new Array();
var eintrag;
timer=null;
text="";
tt=0;
ii=0;
status_mouse=0;

function setAGB() {
value_id=document.formular.AGB.value;
if (value_id == "")document.formular.AGB.value="Ja";
if (value_id == "Ja")document.formular.AGB.value="";
}

function Support(bereich) {
idx_Kunde=0;
email='-';
url_win="http://www.karlchen-krabbelfix.net/cgi-local/support.pl?"+bereich+"&"+email+"&"+idx_Kunde;
sizeX=500;
sizeY=300;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="Support";
support_win=window.open(url_win,titel,win_config);
support_win.focus();
}

function SoundConfig() {
sound_value=document.formular.SOUND_CONFIG.value;
if (sound_value == "ON") {
document.formular.SOUND_CONFIG.value="OFF";
document.formular.TON.src="http://office.watnet.de/cms/files/karlchen-krabbelfix/icons/sound_off.gif";
}
else {
document.formular.SOUND_CONFIG.value="ON";
document.formular.TON.src="http://office.watnet.de/cms/files/karlchen-krabbelfix/icons/sound_on.gif";
}

}

function Beenden() {
Check = confirm("Willst du den Karlchen Krabbelfix Club beenden?");
if(Check == true) self.close();
}

function PRINT() {
action_url=document.formular.Action.value;
if (document.getElementById("MAIN")) {
content_print=document.getElementById("MAIN").innerHTML;
}
if (document.getElementById("SCHILD")) {
content_print=document.getElementById("SCHILD").innerHTML;
}
sizeX=700;
sizeY=500;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",statusbar=0,menubar=1,toolbar=0,scrollbars=1,width="+sizeX+",height="+sizeY;
titel="Print";

if (action_url.length < 5) {
print_win=window.open("",titel,win_config);
print_win.document.write("<html><head><link rel=stylesheet type=text/css href=styles.css><title>Karlchen Krabbelfix Drucken</title></head><body style='margin-left:10px; margin-right:10px; margin-top:10px' OnLoad='window.print();'>"+content_print+"<a href='javascript:self.close()' style='margin-left:10px'>Fenster schließen</a><br><br></body></html>");}
else {
print_win=window.open(action_url,titel,win_config);
}
print_win.focus();

}

function HideHighscore() {
top.IFRAME.document.getElementById('FRAME_HIGHSCORE').style.visibility='hidden';
}

function HIGHSCORE(id,save_score,score_value) {
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
sizeX=450;
sizeY=350;
posX=0;
posY=0;
url="user.pl?HIGHSCORE&"+nutzer+"&"+passwort+"&"+id+"&"+save_score+"&"+score_value;
win_config="top="+posY+",left="+posX+",statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
top.IFRAME.FRAME_HIGHSCORE.location.href=url;
top.IFRAME.document.getElementById('FRAME_HIGHSCORE').style.visibility='visible';
//titel="Highscore";
//highscore_win=window.open(url,titel,win_config);
//highscore_win.focus();
}

function saveSCORE(id,count,no_show) {
show_score=0;
score_value=document.formular.SCORE.value;
SCORES=new Array();
SCORES = score_value.split("|");
eintrag=SCORES[id]*1;
//### SCORE KLASSEN ###
if (id <= 11) {
SCORES[id]=eintrag+count;
}
else {
//#### SCORE SPIELE ###
if (count > eintrag) {
SCORES[id]=count;
show_score=1;
if (no_show == 1) show_score=0;
}
}
score=SCORES.join("|");
document.formular.SCORE.value=score;
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
opener.saveNutzer(nutzer,passwort,score);
if (show_score == 1) HIGHSCORE(id,'SAVE',score);
}

function sendLOGIN() {
user_email=document.formular.USER_MAIL.value;

if (user_email.length > 4) {
url='user.pl?ZUGANGSDATEN&'+user_email;
sizeX=400;
sizeY=200;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="Zugangsdaten";
open_service=window.open(url,titel,win_config);
open_service.focus();
}
else {
alert('Bitte eine gültige E-Mail-Adresse eingeben.');
}

}

function UpdateStart() {
document.formular.LINK_ID.value='rubrik5.html';
document.formular.submit();
}

function IntroStart() {
nav=1;
error=0;
user_alias=document.formular.ALIAS_FIGUR.value;
if (user_alias.length < 3 && user_alias.length > 12) {
error=1;
message='Dein Name muss mindestens aus 3 Zeichen\nund maximal 12 Zeichen bestehen :-)';
}
if (error == 0) {
document.formular.ALIAS.value=user_alias;
document.formular.LINK_ID.value='START';
document.formular.submit();
}
else {
alert(message);
}

}


function setFigur(id) {
img_figur="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/figur"+id+".gif";
document.formular.FIGUR_SELECT.src=img_figur;
document.formular.FIGUR.value=id;
}

function startSound() {

if (count_sound <= 1) {
count_sound++;
sound_delay=setTimeout('startSound()',50);
}
else {
clearTimeout(sound_delay);
sound.Play();
}

}

function playSoundMain(para,id,typ) {
if (para == 'play') FRAME_SOUND.location.href="http://www.karlchen-krabbelfix.net/cgi-local/sound.pl?"+id;
if (para == 'play2') FRAME_SOUND2.location.href="http://www.karlchen-krabbelfix.net/cgi-local/sound.pl?"+id;
}

function playSound(para,id,typ) {
sound_value=document.formular.SOUND_CONFIG.value;
if (sound_value == "OFF") para="off";
if (id == 12) para="off";
if (typ == 'aufgabe') para='play';
sound_blank="http://www.karlchen-krabbelfix.net/web/blank.html";
if (opener) opener.playSoundOpener(para,id,typ);
}

function showINFO(id) {

if (status_mouse == 0) {
status_mouse = 1;
//// KAEFERSCHULE ////
if (id == 1) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:20px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>in meiner Käferschule!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=492;
document.getElementById('INFO').style.top=134;
//playSound('play',1);
}
//// BEI KARLCHEN ////
if (id == 2) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:20px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>bei mir Zuhause!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=335;
document.getElementById('INFO').style.top=280;
}
//// BEI TINA ////
if (id == 3) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase2_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:10px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>bei mir Zuhause!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=394;
document.getElementById('INFO').style.top=235;
}
//// Im Kürbisladen ////
if (id == 4) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase2_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:10px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>im Kürbisladen!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=467;
document.getElementById('INFO').style.top=180;
}
//// Die Hummeln ////
if (id == 5) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase2_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:10px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>bei uns Zuhause!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=382;
document.getElementById('INFO').style.top=394;
}
//// Im Ameisenbau ////
if (id == 6) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase2_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:10px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>im Ameisenbau!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=247;
document.getElementById('INFO').style.top=200;
}
//// In Lottas Wald ////
if (id == 7) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:20px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>in meinem Wald!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=394;
document.getElementById('INFO').style.top=344;
}
//// Die Burg in der Bucht ////
if (id == 8) {
info="<div><div style=\'POSITION:absolute; top:0px; left:0px\'><img src=http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/club/spruchblase2_club.gif></div><div style=\'POSITION:absolute; width:190; height:50; top:18px; left:10px; text-align:center\'><p><font size=1>Herzlich Willkommen<br>in der Burg!<br>Wähle ein Thema aus.</font></p></div></div>";
document.getElementById('INFO').style.left=368;
document.getElementById('INFO').style.top=243;
}
/////////////////////////////////////
document.getElementById('INFO').style.visibility = "visible";
document.getElementById('INFO').innerHTML=info;
}

}

function hideINFO(id) {
if (status_mouse == 1) {
status_mouse=0;
document.getElementById('INFO').style.visibility = "hidden";
//playSound('stop',0);
}
}

function openDE(url) {
sizeX=screen.width;
sizeY=screen.height;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",fullscreen=1,statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="DE";
open_win=window.open(url,titel,win_config);
open_win.focus();
}

function openWIN(url) {
//playSound('stop',0);
url_win="http://www.karlchen-krabbelfix.net/cgi-local/club.pl?WIN&"+url;
if (url == 'Aufgaben-Test') url_win='http://test.karlchen-krabbelfix.net/';
sizeX=screen.width;
sizeY=screen.height;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",fullscreen=1,statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="INFO";
open_win=window.open(url_win,titel,win_config);
open_win.focus();
}

function Login(typ,id) {
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
url="http://www.karlchen-krabbelfix.net/cgi-local/club.pl?LOGIN";
if (passwort != '#PASSWORT#') url="cgi-local/club.pl?LOGIN&"+nutzer+"&"+passwort;
sizeX=screen.width;
sizeY=screen.height;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",fullscreen=1,statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="Login";
if (id =='Neuanmeldung') {
self.location.href="club.pl?LOGIN";
}
else {
club_win=window.open(url,titel,win_config);
club_win.focus();
}
}

function saveLogin(para,id) {
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
score=document.formular.SCORE.value;

if (passwort != '#PASSWORT#')opener.saveNutzer(nutzer,passwort,score);
if (para == 'play') playSound('play',id);
}

function Logout() {
login_intro=document.formular.INTRO_LOGIN.value;
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
score=document.formular.SCORE.value;

if (passwort == '#PASSWORT#')login=0;
url="http://www.karlchen-krabbelfix.net/cgi-local/club.pl?LOGOUT&"+nutzer+"&"+passwort+"&"+score;
sizeX=screen.width;
sizeY=screen.height;
posX=0;
posY=0;
win_config="top="+posY+",left="+posX+",fullscreen=1,statusbar=0,menubar=0,toolbar=0,scrollbars=0,width="+sizeX+",height="+sizeY;
titel="Logout";

if (club_win.closed) {
if (login_intro == 1 && login == 1) {
logout_win=window.open(url,titel,win_config);
logout_win.focus();
}
}

else {
if (login_intro == 1 && login == 1) {
if (club_win) club_win.close();
logout_win=window.open(url,titel,win_config);
logout_win.focus();
}
}
}

function BACK() {
history_back=1;
back_web='rubrik5.html';
if (document.formular.BACK_WEB) back_web=document.formular.BACK_WEB.value;
back_spiele=back_web.indexOf("rubrik20_id");
if (back_spiele >= 0) {
history_back=0;
document.formular.LINK_ID.value=back_web;
}

if (history_back == 0) {
document.formular.submit();
}
else {
history.back();
}

}

function NAV(url,id,count) {
nutzer=document.formular.NUTZER.value;
passwort=document.formular.PASSWORT.value;
spiele_url=url.indexOf("rubrik20_id");
online_malen_url='rubrik8_id631.html';
if (url == online_malen_url) spiele_url=1;

nav_check=1;
//if (spiele_url >= 0) {
//if (nutzer == 'Karlchen' && passwort == 'karl24') {
//nav_check=0;
//alert('Nur für Clubmitglieder!');
//}
//}

if (nav_check == 1) {
score_id=id;
score_count=count;
nav=1;
back_web=0;
history_back=0;
document.formular.LINK_ID.value=url;
if (count > 0) saveSCORE(score_id,score_count);

if (document.formular.BACK_WEB) back_web=document.formular.BACK_WEB.value;
if (back_web == 'rubrik12.html' && url.length > 20) {
history_back=1;
history.back();
}

if (history_back == 0)document.formular.submit();
}

}

function DEMO(url,id,count) {
url_win="http://www.karlchen-krabbelfix.net/cgi-local/club.pl?WIN&"+url;
self.location.href=url_win;
}

function IN(id,x,y,w,h) {
name=document.getElementById('Area_'+id).title;
text_thema="<br>"+name;
area_style="AREA_ON";
if (status_mouse == 0) {
document.getElementById('Area_'+id).style.visibility = "visible";
document.getElementById('Area_'+id).className=area_style;
//document.getElementById('Area_'+id).innerHTML=text_thema;
status_mouse=1;
}
}

function OUT(id,x,y,w,h) {
name=document.getElementById('Area_'+id).title;
if (status_mouse == 1) {
status_mouse=0;
document.getElementById('Area_'+id).className='AREA_OFF';
if (name == 'flash')document.getElementById('Area_'+id).style.visibility = "hidden";
}
}

function CLICK(id,x,y,w,h) {

}

//############### Lueckengeschichte #################
function setWords(countFields) {
woerter="";
for (i=1; i <= countFields; i++) {
wort=document.formular['wort'+i].value;
woerter=woerter+wort+", ";
}
document.formular.Kommentar.value=woerter;
}
//################## AUFGABEN #######################
function INIT(query_) {
SCREEN_SKIN[1]="w2007Jun11_18-13-35_0.jpg";
SCREEN_SKIN[2]="w2006Jul10_20-01-41_0.jpg";
SCREEN_SKIN[3]="w2006Jul10_20-01-41_1.jpg";
ref_link=document.referrer;
klassen_id=document.formular.Template.value;
//ref_url=document.URL;
ref_url=query_;
query_check=ref_url.indexOf("&");
back_classic=ref_url.indexOf("#");
if (back_classic > 0)query_check=0;

if (ref_url.length > 0 && query_check > 0) {
QUERY=ref_url.split("&");
id=QUERY[1];
klasse=QUERY[2];
fach=QUERY[3];
pos_fach=QUERY[4];
IFRAME.location.href="aufgaben.pl?AUFGABEN&"+id+"&"+klasse+"&"+fach+"&"+pos_fach+"&"+klassen_id;
document.formular.THEMA.value=id;
document.formular.KLASSE.value=klasse;
document.formular.FACH.value=fach;
document.formular.POS_FACH.value=pos_fach;
}
else {
//id=IFRAME.document.getElementById('THEMA_ID').value;
id=document.formular.THEMA.value;
klasse=document.formular.KLASSE.value;
fach=document.formular.FACH.value;
pos_fach=document.formular.POS_FACH.value;
}

back_web="BACK_AUFGABE;query&"+id+"&"+klasse+"&"+fach+"&"+pos_fach;
document.formular.LINK_ID.value=back_web;
document.formular.LINK_WEB.value=back_web;

img_thema="http://office.watnet.de/cms/files/karlchen-krabbelfix/images/thema_"+id+".gif";
document.formular.THEMA_MOTIV.src=img_thema;
if (klassen_id == 0) moveKlasse(klasse);
moveFach(pos_fach);
playSound('play', id);
}

function showThema(id) {
klassen_id=document.formular.Template.value;
document.formular.THEMA.value=id;
klasse=document.formular.KLASSE.value;
fach=document.formular.FACH.value;
img_thema="http://office.watnet.de/cms/files/karlchen-krabbelfix/images/thema_"+id+".gif";
document.formular.THEMA_MOTIV.src=img_thema;
IFRAME.location.href="aufgaben.pl?AUFGABEN&"+id+"&"+klasse+"&"+fach+"&"+pos_fach+"&"+klassen_id;
link_rubrik="rubrik5.html?query&"+id+"&"+klasse+"&"+fach+"&"+pos_fach;
location.replace('#');
}
function showKlasse(klasse) {
klassen_id=document.formular.Template.value;
klasse_select=klasse;
document.formular.KLASSE.value=klasse;
fach=document.formular.FACH.value;
id=document.formular.THEMA.value;
IFRAME.location.href="aufgaben.pl?AUFGABEN&"+id+"&"+klasse+"&"+fach+"&0&"+klassen_id;
link_rubrik="rubrik5.html?query&"+id+"&"+klasse+"&"+fach+"&"+pos_fach;
location.replace('#');
}
function showFach(fach) {
klassen_id=document.formular.Template.value;
fach_select=pos_fach;
document.formular.POS_FACH.value=fach_select;
document.formular.FACH.value=fach;
klasse=document.formular.KLASSE.value;
id=document.formular.THEMA.value;
IFRAME.location.href="aufgaben.pl?AUFGABEN&"+id+"&"+klasse+"&"+fach+"&"+pos_fach+"&"+klassen_id;
link_rubrik="rubrik5.html?query&"+id+"&"+klasse+"&"+fach+"&"+pos_fach;
location.replace('#');
}
function moveFach(y) {
pos_fach=y;
if (y==0) y=fach_select;
document.getElementById('REGLER_FACH').style.top = y;
}
function moveKlasse(klasse) {
if (klasse==0) klasse=klasse_select;
document.getElementById('REGLER_KLASSE1').style.visibility = "hidden";
document.getElementById('REGLER_KLASSE2').style.visibility = "hidden";
document.getElementById('REGLER_KLASSE3').style.visibility = "hidden";
document.getElementById('REGLER_KLASSE4').style.visibility = "hidden";
document.getElementById('REGLER_KLASSE'+klasse).style.visibility = "visible";
}
function changeSkin(nr) {
path_skin="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/_main/";
motiv=path_skin+SCREEN_SKIN[nr];
regler_fach="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/regler"+nr+"_fach.gif";
regler_klasse1="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/regler"+nr+"_klasse1.gif";
regler_klasse2="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/regler"+nr+"_klasse2.gif";
regler_klasse3="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/regler"+nr+"_klasse3.gif";
regler_klasse4="http://office.watnet.de/cms/files/karlchen-krabbelfix/screens/regler"+nr+"_klasse4.gif";
document.formular.SCREEN.src=motiv;
document.formular.REG_FACH.src=regler_fach;
document.formular.REG_K1.src=regler_klasse1;
document.formular.REG_K2.src=regler_klasse2;
document.formular.REG_K3.src=regler_klasse3;
document.formular.REG_K4.src=regler_klasse4;
if (nr == 1) {
document.getElementById('REGLER_KLASSE1').style.top = 153;
document.getElementById('REGLER_KLASSE2').style.top = 142;
document.getElementById('REGLER_KLASSE3').style.top = 143;
document.getElementById('REGLER_KLASSE4').style.top = 155;
}
if (nr == 2) {
document.getElementById('THEMA_NAME').style.top = 48;
document.getElementById('REGLER_KLASSE1').style.top = 143;
document.getElementById('REGLER_KLASSE2').style.top = 143;
document.getElementById('REGLER_KLASSE3').style.top = 143;
document.getElementById('REGLER_KLASSE4').style.top = 143;
}
if (nr == 3) {
document.getElementById('THEMA_NAME').style.top = 47;
document.getElementById('REGLER_KLASSE1').style.top = 143;
document.getElementById('REGLER_KLASSE2').style.top = 143;
document.getElementById('REGLER_KLASSE3').style.top = 143;
document.getElementById('REGLER_KLASSE4').style.top = 143;
}
}
//################### SHOP Select ###################
function shopSelect() {
anzahl_felder=document.formular.length;
for (i=0; i < anzahl_felder; i++) {
feld_name=document.forms[0].elements[i].name;
feld_typ=document.forms[0].elements[i].type;
feld_name=feld_name.replace(/S_/,"");
if (feld_typ == "checkbox")FELD[feld_name]=1;
}
warenkorb=document.cookie;
if (warenkorb.length > 0) {
orders = warenkorb.split("#");

i=1;
len_order=orders.length;
while (i <= len_order) {
eintrag=orders[i]+"";
len_eintrag=eintrag.length;
if (len_eintrag > 0) {
ORDER_VALUE = eintrag.split("&");
id=ORDER_VALUE[0]*1;
}
else {
id=0;
}
if (FELD[id] == 1)document.formular['S_'+id].checked=true;
i++;
}
}
else {
warenkorb="#";
}

}
//################# SET COOKIE ##################
function setCookie() {
zeitraum=1000*60*60*24*365;
zeit = new Date();
dauer = new Date(zeit.getTime() + zeitraum);
document.cookie = warenkorb+'; expires='+dauer.toGMTString()+'; path=/';
}
//################# SHOP ORDER ##################
function order(id,titel,preis,artikel_nr,reload_link,menge,show_basket) {
id_value=id+"&"+titel+"&"+preis+"&"+artikel_nr+"&"+menge+"#";
if (show_basket == 1) {
if (document.formular['S_'+id].checked==false) {
warenkorb=warenkorb+id_value+"#";
setCookie();
}
}
else {
if (document.formular['S_'+id].checked==true)warenkorb=warenkorb+id_value+"#";
if (document.formular['S_'+id].checked==false)warenkorb=warenkorb.replace(id_value,"");
setCookie();
}
if (reload_link.length > 1)self.location.href=reload_link;
}
//################# RESET SHOP ##################
function resetShop() {
warenkorb="#";
setCookie();
}