/* Cached Version: 2.0.5, Hash: c0d583e6955e475aa1af9ecca8c2c4d1; 02.05.2024 00:14 */ function boerse(x,y,sid){ var code = new Date(); document.getElementById('graph').src='images/ingame/boerse.who?id='+x+'&sid='+sid+'&ajax=1&week='+y+'&code='+code.getTime(); document.bank.week.value=y; document.byc.week.value=y;}function boerse_autosel(obj) { var i = (obj.name == 'pcip' ? 1 : (obj.name == 'cu' ? 2 : (obj.name == 'kto' ? 3 : 0))); document.bank.reciptype[i].checked = true;}function boerse_action(){ if(confirm('Willst du diese Aktion wirklich ausführen? Für jedes Kaufen oder Verkaufen werden Gebühren verlangt!')) { xajax_content('1','bank','boerse',xajax.getFormValues('byc'),'0',''); }}function clusterboerse(x,y,sid){ var code = new Date(); document.getElementById('graph').src='images/ingame/cluster_boerse.who?id='+x+'&sid='+sid+'&ajax=1&week='+y+'&code='+code.getTime(); document.clusterboerse.week.value=y; document.byc.week.value=y;}function clusterboerse_autosel(obj){ var i = (obj.name=='pcip' ? 1 : 0); document.clusterboerse.reciptype[i].checked=true;}function clusterboerse_action(){ if(confirm('Willst du diese Aktion wirklich ausführen? Für jedes Kaufen oder Verkaufen werden Gebühren verlangt!')) { xajax_content('1','cluster_boerse','boerse',xajax.getFormValues('byc'),'0',''); }}function show_credr(){ l=parseInt((screen.availWidth-600)/2); t=parseInt((screen.availHeight-500)/2); p='width=600,height=500,toolbar=0,menubar=0,location=0,status=0,resizable=1,scrollbars=1,left='+String(l)+',top='+String(t); newwin = window.open('popup.who?action=credittool&sid='+param('sid'),'Banktool',p); setTimeout('newwin.focus();',200);}function battle_ports(z,d) { z = z*1; if(z<=100) { getLay('closeports').innerHTML='
PORT '+z+': Erfolgreich'+(z!=1 ? getLay('closeports').innerHTML : ''); setTimeout('battle_ports('+(z+1)+','+d+')',d); } else { xajax_content('1','battle','opc',xajax.getFormValues('attack'),'0','closeports'); }}function battle_subscan(z,d) { z = z*1; countries=new Array('Afghanistan','Ägypten','Algerien','Argentinien','Äthiopien','Bangladesch','Brasilien','China','D.R. Kongo','Dänemark','Deutschland','Frankreich','Ghana','Großbritannien','Indien','Indonesien','Irak','Iran','Italien','Japan','Kanada','Kenia','Kolumbien','Malaysia','Marokko','Mexiko','Myanmar','Nepal','Nigeria','Pakistan','Peru','Philippinen','Polen','Rumänien','Russland','Saudi-Arabien','Spanien','Südafrika','Sudan','Südkorea','Taiwan','Tansania','Thailand','Türkei','Uganda','Ukraine','USA','Usbekistan','Venezuela','Vietnam','Australien','Neuseeland','Schweiz','Österreich','Portugal','Zypern','Schweden','Israel','Katar','Monaco','Singapore','Liechtenstein','Irland','Principe','Timor-Leste'); if(z<66) { getLay('hacking').innerHTML='
Scanne '+countries[(z-1)]+'...'+(z!=1 ? getLay('hacking').innerHTML : ''); if(z>0) var percent=Math.round((z*100)/65); getLay('percent').innerHTML=(percent>100 ? 100 : percent)+' %'; setTimeout('battle_subscan('+(z+1)+','+d+')',d); } else { getLay('hacking').innerHTML='
Zeige Zusammenfassung...'+(z!=1 ? getLay('hacking').innerHTML : ''); xajax_content('1','battle','execute',xajax.getFormValues('attack'),'0',''); }}function battle_extended(z,d) { z = z*1; countries=new Array('Afghanistan','Ägypten','Algerien','Argentinien','Äthiopien','Bangladesch','Brasilien','China','D.R. Kongo','Dänemark','Deutschland','Frankreich','Ghana','Großbritannien','Indien','Indonesien','Irak','Iran','Italien','Japan','Kanada','Kenia','Kolumbien','Malaysia','Marokko','Mexiko','Myanmar','Nepal','Nigeria','Pakistan','Peru','Philippinen','Polen','Rumänien','Russland','Saudi-Arabien','Spanien','Südafrika','Sudan','Südkorea','Taiwan','Tansania','Thailand','Türkei','Uganda','Ukraine','USA','Usbekistan','Venezuela','Vietnam','Australien','Neuseeland','Schweiz','Österreich','Portugal','Zypern','Schweden','Israel','Katar','Monaco','Singapore','Liechtenstein','Irland','Principe','Timor-Leste'); if(z<66) { getLay('hacking').innerHTML='
Scanne '+countries[(z-1)]+'...'+(z!=1 ? getLay('hacking').innerHTML : ''); if(z>0) var percent=Math.round((z*100)/65); getLay('percent').innerHTML=(percent>100 ? 100 : percent)+' %'; setTimeout('battle_subscan('+(z+1)+','+d+')',d); } else { getLay('hacking').innerHTML='
Zeige Zusammenfassung...'+(z!=1 ? getLay('hacking').innerHTML : ''); xajax_content('1','battle','execute',xajax.getFormValues('attack'),'0',''); }}function battle_attack(z,d,n,l,a) { z = z*1; if(z<=100 || (l==2 || l==3 || l==4 || l==5)) { zufall=(Math.round(Math.random()*8)+1); text=''; if(l==5 && n==1) { text='IP Spoofing erfolglos...'; zufall=0; } else if(l==5 && n==0) { text='IP Spoofing erfolgreich...'; zufall=0; } else if(l==2 || l==3 || l==4) { zufall2=Math.round(Math.random()); if(zufall2==1) text='Upload erfolgt!'; else text='Upload nicht möglich!'; zufall=0; } else if(l==6) { text='Verbindung wieder hergestellt!'; zufall=0; } else if(zufall==1) { text='Suche freien Port...'; } else if(zufall>1 && zufall<5) { text='Uploade Viren...'; } else if(zufall==5) { text='IP Spoofing...'; } else if(zufall==6) { text='Die Verbindung wurde durch den Zielcomputer getrennt.'; } if(text) getLay('hacking').innerHTML='
'+text+(z!=1 ? getLay('hacking').innerHTML : ''); getLay('percent').innerHTML=(z>100 ? 100 : z)+' %'; setTimeout('battle_attack('+(z+1)+','+d+','+n+','+zufall+','+a+')',d); } else { getLay('hacking').innerHTML='
Zeige Zusammenfassung...'+(z!=1 ? getLay('hacking').innerHTML : ''); xajax_content('1','battle','execute',xajax.getFormValues('attack'),'0',''); }}function vcheck(link){ xajax_content('1','research','start','','0',''); }function battle_foc() { document.battle.befehl.focus(); }function deletehw(type,item) { if(confirm('Der Gegenstand wird weggeschmissen und lässt sich nicht wiederherstellen. Fortsetzen?')) { xajax_content('1','market','hardware_delete','','0',type+','+item); }}function sellhw(type,item) { if(confirm('Der Hardwaregegegenstand wird für den angegebenen Betrag verkauft und ist dann nicht mehr verfügbar. Der Betrag wird auf den aktuell ausgewählten PC überwiesen. Fortsetzen?')) { xajax_content('1','market','hardware_sell',item,'0',type+','+item); }}function buy(id) { eval('var pr = document.buyform.buy'+id+'.value;'); pr = pr.replace(/[^0-9]/g, ''); if(!pr) return FALSE; xajax_content('1','market','auction_buy',id+','+pr,'0','');}function shop_buy(item) { eval('var form = document.buy'+item+'1.'+item+'.options[document.buy'+item+'1.'+item+'.selectedIndex].value;'); if(form!='false') { if(confirm('Möchtest du diese Hardware wirklich für den angegebenen Preis kaufen?')) { xajax_content('1','market','hardware_buy',xajax.getFormValues('buy'+item+'1'),'0',''); } }}function star_bew(id,nr) { for(i=1;i<6;i++) { if(i<=nr) document.getElementById('star'+i+'-'+id).src='images/ingame/star1_1.gif'; else document.getElementById('star'+i+'-'+id).src='images/ingame/star1_0.gif'; }}function price(item,erm) {if(item=='hardware_solocpu') { stufe = document.buyhardware_solocpu1.hardware_solocpu.options[document.buyhardware_solocpu1.hardware_solocpu.options.selectedIndex].value; document.buyhardware_solocpu2.hardware_solocpup.value = komma(Math.round((Math.round(Math.pow(3000*(stufe/2),(stufe/95)+1)))*erm))+' Credits'; return true; } else if(item=='hardware_duocpu') { stufe = document.buyhardware_duocpu1.hardware_duocpu.options[document.buyhardware_duocpu1.hardware_duocpu.options.selectedIndex].value; document.buyhardware_duocpu2.hardware_duocpup.value = komma(Math.round((Math.round(Math.pow(8000*(stufe/2),(stufe/86)+1))+50000)*erm))+' Credits'; return true; } else if(item=='hardware_quadcpu') { stufe = document.buyhardware_quadcpu1.hardware_quadcpu.options[document.buyhardware_quadcpu1.hardware_quadcpu.options.selectedIndex].value; document.buyhardware_quadcpu2.hardware_quadcpup.value = komma(Math.round((Math.round(Math.pow(12000*(stufe/2),(stufe/75)+1))+110000)*erm))+' Credits'; return true; } else if(item=='hardware_oktocpu') { stufe = document.buyhardware_oktocpu1.hardware_oktocpu.options[document.buyhardware_oktocpu1.hardware_oktocpu.options.selectedIndex].value; document.buyhardware_oktocpu2.hardware_oktocpup.value = komma(Math.round((Math.round(Math.pow(14000*(stufe/2),(stufe/68)+1))+150000)*erm))+' Credits'; return true; } else if(item=='hardware_sedeccpu') { stufe = document.buyhardware_sedeccpu1.hardware_sedeccpu.options[document.buyhardware_sedeccpu1.hardware_sedeccpu.options.selectedIndex].value; document.buyhardware_sedeccpu2.hardware_sedeccpup.value = komma(Math.round((Math.round(Math.pow(16000*(stufe/2),(stufe/64)+1))+200000)*erm))+' Credits'; return true; } else if(item=='hardware_cooler') { stufe = document.buyhardware_cooler1.hardware_cooler.options[document.buyhardware_cooler1.hardware_cooler.options.selectedIndex].value; document.buyhardware_cooler2.hardware_coolerp.value = komma(Math.round((Math.round(Math.pow(3000*(stufe/2),(stufe/105)+1))+60000)*erm))+' Credits'; return true; } else if(item=='hardware_sdram') { stufe = document.buyhardware_sdram1.hardware_sdram.options[document.buyhardware_sdram1.hardware_sdram.options.selectedIndex].value; document.buyhardware_sdram2.hardware_sdramp.value = komma(Math.round((Math.round(Math.pow(15000*(stufe/2),(stufe/80)+1)))*erm))+' Credits'; return true; } else if(item=='hardware_ddr1ram') { stufe = document.buyhardware_ddr1ram1.hardware_ddr1ram.options[document.buyhardware_ddr1ram1.hardware_ddr1ram.options.selectedIndex].value; document.buyhardware_ddr1ram2.hardware_ddr1ramp.value = komma(Math.round((Math.round(Math.pow(17000*(stufe/2),(stufe/75)+1)))*erm))+' Credits'; return true; } else if(item=='hardware_ddr2ram') { stufe = document.buyhardware_ddr2ram1.hardware_ddr2ram.options[document.buyhardware_ddr2ram1.hardware_ddr2ram.options.selectedIndex].value; document.buyhardware_ddr2ram2.hardware_ddr2ramp.value = komma(Math.round((Math.round(Math.pow(19000*(stufe/2),(stufe/65)+1))+10000)*erm))+' Credits'; return true; } else if(item=='hardware_ddr3ram') { stufe = document.buyhardware_ddr3ram1.hardware_ddr3ram.options[document.buyhardware_ddr3ram1.hardware_ddr3ram.options.selectedIndex].value; document.buyhardware_ddr3ram2.hardware_ddr3ramp.value = komma(Math.round((Math.round(Math.pow(21000*(stufe/2),(stufe/60)+1))+20000)*erm))+' Credits'; return true; } else if(item=='hardware_ddr4ram') { stufe = document.buyhardware_ddr4ram1.hardware_ddr4ram.options[document.buyhardware_ddr4ram1.hardware_ddr4ram.options.selectedIndex].value; document.buyhardware_ddr4ram2.hardware_ddr4ramp.value = komma(Math.round((Math.round(Math.pow(22000*(stufe/2),(stufe/55)+1))+30000)*erm))+' Credits'; return true; } else if(item=='hardware_ddr5ram') { stufe = document.buyhardware_ddr5ram1.hardware_ddr5ram.options[document.buyhardware_ddr5ram1.hardware_ddr5ram.options.selectedIndex].value; document.buyhardware_ddr5ram2.hardware_ddr5ramp.value = komma(Math.round((Math.round(Math.pow(30000*(stufe/2),(stufe/50)+1))+50000)*erm))+' Credits'; return true; } else if(item=='hardware_hdd') { stufe = document.buyhardware_hdd1.hardware_hdd.options[document.buyhardware_hdd1.hardware_hdd.options.selectedIndex].value; document.buyhardware_hdd2.hardware_hddp.value = komma(Math.round((Math.round(Math.pow(6000*(stufe/2),(stufe/25)+1)))*erm))+' Credits'; return true; } else if(item=='hardware_mb') { stufe = document.buyhardware_mb1.hardware_mb.options[document.buyhardware_mb1.hardware_mb.options.selectedIndex].value; document.buyhardware_mb2.hardware_mbp.value = komma(Math.round((0)*erm))+' Credits'; if(stufe==1) { document.buyhardware_mb1.mbgr.value = 'Mini ATX'; document.buyhardware_mb1.mbcpu.value = 'Solo-CPU'; document.buyhardware_mb1.mbram.value = '1x SD-Ram'; document.buyhardware_mb1.mbcon.value = '2x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten nicht möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('10000'*erm)+' Credits'; } if(stufe==2) { document.buyhardware_mb1.mbgr.value = 'Mini ATX'; document.buyhardware_mb1.mbcpu.value = 'Solo-CPU'; document.buyhardware_mb1.mbram.value = '2x SD-Ram'; document.buyhardware_mb1.mbcon.value = '6x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten nicht möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('40000'*erm)+' Credits'; } if(stufe==3) { document.buyhardware_mb1.mbgr.value = 'Mini ATX'; document.buyhardware_mb1.mbcpu.value = 'Solo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR1-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 '; document.buyhardware_mb1.mbtun.value='Übertakten nicht möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('30000'*erm)+' Credits'; } if(stufe==4) { document.buyhardware_mb1.mbgr.value = 'Mini ATX'; document.buyhardware_mb1.mbcpu.value = 'Solo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR1-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten nicht möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('40000'*erm)+' Credits'; } if(stufe==5) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Solo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '3x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten nicht möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('90000'*erm)+' Credits'; } if(stufe==6) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Duo-CPU'; document.buyhardware_mb1.mbram.value = '4x SD-Ram'; document.buyhardware_mb1.mbcon.value = '4x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('66000'*erm)+' Credits'; } if(stufe==7) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Duo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR1-Ram'; document.buyhardware_mb1.mbcon.value = '3x SATA-1 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('70000'*erm)+' Credits'; } if(stufe==8) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Duo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '4x SATA-1 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('100000'*erm)+' Credits'; } if(stufe==9) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Duo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '3x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('110000'*erm)+' Credits'; } if(stufe==10) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Duo-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR3-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-2 '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('140000'*erm)+' Credits'; } if(stufe==11) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Quad-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR1-Ram'; document.buyhardware_mb1.mbcon.value = '8x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('90000'*erm)+' Credits'; } if(stufe==12) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Quad-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '8x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('100000'*erm)+' Credits'; } if(stufe==13) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Quad-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR3-Ram'; document.buyhardware_mb1.mbcon.value = '6x IDE '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('122000'*erm)+' Credits'; } if(stufe==14) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Quad-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR3-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 , 4x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('132000'*erm)+' Credits'; } if(stufe==15) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Quad-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR3-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 , 4x SATA-2 '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('140000'*erm)+' Credits'; } if(stufe==16) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Okto-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 , 6x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('170000'*erm)+' Credits'; } if(stufe==17) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Okto-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR2-Ram'; document.buyhardware_mb1.mbcon.value = '8x SATA-2 '; document.buyhardware_mb1.mbtun.value='Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('200000'*erm)+' Credits'; } if(stufe==18) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Okto-CPU'; document.buyhardware_mb1.mbram.value = '2x DDR4-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 , 6x SATA-2 '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('260000'*erm)+' Credits'; } if(stufe==19) { document.buyhardware_mb1.mbgr.value = 'Standard ATX'; document.buyhardware_mb1.mbcpu.value = 'Okto-CPU'; document.buyhardware_mb1.mbram.value = '4x DDR4-Ram'; document.buyhardware_mb1.mbcon.value = '2x SATA-1 , 6x SATA-2 '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('280000'*erm)+' Credits'; } if(stufe==20) { document.buyhardware_mb1.mbgr.value = 'Ultra ATX'; document.buyhardware_mb1.mbcpu.value = 'Sedec-CPU'; document.buyhardware_mb1.mbram.value = '6x DDR4-Ram'; document.buyhardware_mb1.mbcon.value = '8x SATA-2 '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('700000'*erm)+' Credits'; } if(stufe==21) { document.buyhardware_mb1.mbgr.value = 'Ultra ATX'; document.buyhardware_mb1.mbcpu.value = 'Sedec-CPU'; document.buyhardware_mb1.mbram.value = '6x DDR5-Ram'; document.buyhardware_mb1.mbcon.value = '6x SATA-2 , 6x SSD '; document.buyhardware_mb1.mbtun.value='sicheres Übertakten möglich'; document.buyhardware_mb2.hardware_mbp.value = komma('5700000'*erm)+' Credits'; } return true; } else if(item=='hardware_ca') { stufe = document.buyhardware_ca1.hardware_ca.options[document.buyhardware_ca1.hardware_ca.options.selectedIndex].value; document.buyhardware_ca2.hardware_cap.value = komma(Math.round((Math.round(Math.pow((stufe*100),2.05)))*erm))+' Credits';if(stufe==1) document.buyhardware_ca1.cadesc.value = 'Mini ATX'; if(stufe==2) document.buyhardware_ca1.cadesc.value = 'Standard ATX'; if(stufe==3) document.buyhardware_ca1.cadesc.value = 'Ultra ATX'; return true; } else if(item=='hardware_cdlw') { stufe = document.buyhardware_cdlw1.hardware_cdlw.options[document.buyhardware_cdlw1.hardware_cdlw.options.selectedIndex].value; document.buyhardware_cdlw2.hardware_cdlwp.value = komma(Math.round((Math.round(Math.pow(6000*(stufe/2),(stufe/25)+1))+60000)*erm))+' Credits';if(stufe==1) document.buyhardware_cdlw1.cdlwdesc.value = '16x'; if(stufe==2) document.buyhardware_cdlw1.cdlwdesc.value = '32x'; if(stufe==3) document.buyhardware_cdlw1.cdlwdesc.value = '64x'; return true; } else if(item=='hardware_dvdlw') { stufe = document.buyhardware_dvdlw1.hardware_dvdlw.options[document.buyhardware_dvdlw1.hardware_dvdlw.options.selectedIndex].value; document.buyhardware_dvdlw2.hardware_dvdlwp.value = komma(Math.round((Math.round(Math.pow(8000*(stufe/2),(stufe/24)+1))+90000)*erm))+' Credits';if(stufe==1) document.buyhardware_dvdlw1.dvdlwdesc.value = '16x'; if(stufe==2) document.buyhardware_dvdlw1.dvdlwdesc.value = '32x'; if(stufe==3) document.buyhardware_dvdlw1.dvdlwdesc.value = '64x'; return true; } else if(item=='other_cdr') { stufe = document.buyother_cdr1.other_cdr.options[document.buyother_cdr1.other_cdr.options.selectedIndex].value; document.buyother_cdr2.other_cdrp.value = komma(Math.round((Math.round(Math.pow(4000*(stufe/2),(stufe/24)+1))+10000)*erm))+' Credits'; return true; } else if(item=='other_dvdr') { stufe = document.buyother_dvdr1.other_dvdr.options[document.buyother_dvdr1.other_dvdr.options.selectedIndex].value; document.buyother_dvdr2.other_dvdrp.value = komma(Math.round((Math.round(Math.pow(8000*(stufe/2),(stufe/24)+1))+20000)*erm))+' Credits'; return true; } else if(item=='other_usbstick') { stufe = document.buyother_usbstick1.other_usbstick.options[document.buyother_usbstick1.other_usbstick.options.selectedIndex].value; document.buyother_usbstick2.other_usbstickp.value = komma(Math.round((Math.round(Math.pow(10000*(stufe/2),(stufe/24)+1))+60000)*erm))+' Credits'; return true; } else return false;}function post(x){if(x=='ips') { document.market.price.value = komma(100)+' Credits'; document.market.speed.value = 24+' Stunden'; return true; } else if(x=='act') { document.market.price.value = komma(800)+' Credits'; document.market.speed.value = 12+' Stunden'; return true; } else if(x=='vca') { document.market.price.value = komma(4000)+' Credits'; document.market.speed.value = 9+' Stunden'; return true; } else if(x=='boe') { document.market.price.value = komma(5000)+' Credits'; document.market.speed.value = 7+' Stunden'; return true; } else if(x=='cgl') { document.market.price.value = komma(19000)+' Credits'; document.market.speed.value = 3+' Stunden'; return true; } else if(x=='uve') { document.market.price.value = komma(25000)+' Credits'; document.market.speed.value = 1+' Stunden'; return true; } else return false;}function post_cost(){if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='ips') { getLay('versand_cost').innerHTML = komma(100)+' Credits'; return true; } else if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='act') { getLay('versand_cost').innerHTML = komma(800)+' Credits'; return true; } else if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='vca') { getLay('versand_cost').innerHTML = komma(4000)+' Credits'; return true; } else if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='boe') { getLay('versand_cost').innerHTML = komma(5000)+' Credits'; return true; } else if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='cgl') { getLay('versand_cost').innerHTML = komma(19000)+' Credits'; return true; } else if(document.getElementById('versand').options[document.getElementById('versand').options.selectedIndex].value=='uve') { getLay('versand_cost').innerHTML = komma(25000)+' Credits'; return true; } else return false;}function cluster_autosel(obj){ var i = (obj.name == 'clustercode' ? 1 : (obj.name == 'cu' ? 2 : (obj.name == 'kto' ? 3 : 0))); document.transfer.reciptype[i].checked = true; } function faq_open(id,style){ if(document.getElementById('faq'+id).style.display=='none') { document.getElementById('faq'+id).style.display='block'; document.getElementById('img'+id).src='styles/'+style+'/images/symbols/close.png'; } else { document.getElementById('faq'+id).style.display='none'; document.getElementById('img'+id).src='styles/'+style+'/images/symbols/open.png'; }}function distrattack_abort(id){ if(confirm('Möchtest du den Verbandsangriff wirklich abbrechen?')) { xajax_content('1','cluster','distrattack','','0','cancel,'+id); }}function distrattack_check(e){ var x=document.distrattack.sellist.options[document.distrattack.sellist.selectedIndex].value; if(x=='userdef') { if(!isNaN(document.distrattack.howmuch.value)) { x=parseInt(document.distrattack.howmuch.value); } } else if(x=='all') x=document.distrattack.elements.length-4; else x=Math.floor(x/100*(document.distrattack.elements.length-4)); if(!isNaN(x)) document.distrattack.howmuch.value=x; for(i=0;i100) var temperatureLoad = 100; if(temperatureLoad<0) var temperatureLoad = 0; document.getElementById(pid).style.marginTop = (105-temperatureLoad)+'px'; document.getElementById(pid).style.display = 'block';}function load_other(pid,otherLoad) { if(otherLoad>100) var otherLoad = 100; if(otherLoad<0) var otherLoad = 0; document.getElementById(pid).style.height = otherLoad+'px';}function downloadcheck() { xajax_content('1','pcs','pc',xajax.getFormValues('download'),'0','check_downloads');}function filescheck() { xajax_content('1','pcs','pc',xajax.getFormValues('files'),'0','check_files');}function calcburn() { var gesamt=0*1; gesamt += 20*(getLay('file_opens').value==parseFloat(getLay('file_opens').value) ? getLay('file_opens').value : 0); gesamt += 50*(getLay('file_shutdowner').value==parseFloat(getLay('file_shutdowner').value) ? getLay('file_shutdowner').value : 0); gesamt += 10*(getLay('file_ginui').value==parseFloat(getLay('file_ginui').value) ? getLay('file_ginui').value : 0); gesamt += 70*(getLay('file_bomb').value==parseFloat(getLay('file_bomb').value) ? getLay('file_bomb').value : 0); gesamt += 100*(getLay('file_crasher').value==parseFloat(getLay('file_crasher').value) ? getLay('file_crasher').value : 0); gesamt += 50*(getLay('file_hackerz').value==parseFloat(getLay('file_hackerz').value) ? getLay('file_hackerz').value : 0);tmp = getLay('use').options[getLay('use').selectedIndex].value; tmp = tmp.split(','); v = tmp[1]; prz = Math.ceil(((gesamt*100)/v)); if(prz<=100) getLay('ladebalken-in').style.width=prz+'%'; else getLay('ladebalken-in').style.width='100%'; if(prz>100) getLay('ladebalken-in').style.backgroundColor='#990000'; else if(prz>90) getLay('ladebalken-in').style.backgroundColor='#CC9900'; else getLay('ladebalken-in').style.backgroundColor='#003300'; getLay('ladebalken-font').innerHTML='    '+(prz>100 ? '>100' : prz)+'%';}function updatepclist(optionfields,select){ document.saver.changepc.innerHTML=optionfields; if(document.all) { document.saver.changepc.outerHTML = ''; } if(select) updatepclist_select(select);}function updatepclist_select(id){ for (var i=0; i 3) { var mod = laenge % 3; var output = (mod > 0 ? (nummer.substring(0,mod)) : ''); for (i=0 ; i < Math.floor(laenge / 3); i++) { if ((mod == 0) && (i == 0)) output += nummer.substring(mod+ 3 * i, mod + 3 * i + 3); else output+= '.' + nummer.substring(mod + 3 * i, mod + 3 * i + 3); } return (sn ? '-' : '')+(output); } else return (sn ? '-' : '')+nummer;}function param(name){ var s,a,x,i; s=location.search; if(s=='' || s.indexOf(name+'=')==-1) { if(!(top.frames.location==null)) s=top.frames.location.search; } if(s!='' && s.indexOf(name+'=')>-1) { s=s.substring(1); a=new Array(); x=new Array(); x=s.split('&'); for(i=0;i < x.length;i++) { a[i]=new Array(); a[i]=x[i].split('='); } for(i=0;i < a.length;i++) { if(a[i][0].toLowerCase()==name.toLowerCase()) break; } return unescape(a[i][1]); } else { return ''; }}var abook; var notices; var chat; var upload; var pay; var games; var impressum;function show_abook(type) { l=parseInt((screen.availWidth-500)/2); t=parseInt((screen.availHeight-300)/2); p='width=500,height=300,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=1,left='+String(l)+',top='+String(t); abook = window.open('popup.who?action=abook&do=selpage&sid='+param('sid')+'&type='+type,'Addressbuch',p); setTimeout('abook.focus();',200);}function show_notices() { l=parseInt((screen.availWidth-600)/2); t=parseInt((screen.availHeight-500)/2); p='width=600,height=500,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=1,left='+String(l)+',top='+String(t); notices = window.open('popup.who?action=notice&sid='+param('sid'),'Notizbuch',p); setTimeout('notices.focus();',200);}function show_games(gameid) { l=parseInt((screen.availWidth-500)/2); t=parseInt((screen.availHeight-500)/2); p='width600,height=600,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=1,left='+String(l)+',top='+String(t); games = window.open('popup.who?action=games&game='+gameid+'&sid='+param('sid'),'Games',p); setTimeout('games.focus();',200);}function show_outgames(gameid) { l=parseInt((screen.availWidth-500)/2); t=parseInt((screen.availHeight-500)/2); p='width600,height=600,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=1,left='+String(l)+',top='+String(t); games = window.open('popup_outgames.who?game='+gameid,'Games',p); setTimeout('games.focus();',200);}function show_chat() { l=parseInt((screen.availWidth-650)/2); t=parseInt((screen.availHeight-410)/2); p='width=790,height=430,toolbar=0,menubar=0,location=0,status=0,resizable=1,scrollbars=0,left='+String(l)+',top='+String(t); chat = window.open('popup.who?action=chat&sid='+param('sid'),'Chat',p); setTimeout('chat.focus();',200);}function show_impressum() { l=parseInt((screen.availWidth-650)/2); t=parseInt((screen.availHeight-410)/2); p='width=790,height=430,toolbar=0,menubar=0,location=0,status=0,resizable=1,scrollbars=1,left='+String(l)+',top='+String(t); impressum = window.open('popup.who?action=impressum&sid='+param('sid'),'Impressum',p); setTimeout('impressum.focus();',200);}function open_chat_options() { var txt;var r = confirm('I am an confirm box!');if (r == true) { xajax_external('chat_refresh','global');} else { xajax_content('2','chat','','','0','');} }function change_option_chat(userID,ton,entree,attack) { var form = new Array; form['userID']=userID; form['ton']=ton; form['entree']=entree; form['attack']=attack; xajax_content('2','chat','changeoption',form,'0',''); }function change_this_chat_option(userID,art,wert) { var form = new Array; form['userID']=userID; form['art']=art; form['wert']=wert; xajax_content('2','chat','changeoption',form,'0',''); }function entree_change(userID,art,wert) { play_sound('your-turn'); change_this_chat_option(userID,art,wert);}function sound_change(userID,art,wert) { play_sound('your-turn'); change_this_chat_option(userID,art,wert); }function play_msg_sound() { var testneu = document.getElementById('tondiv'); var testneu = testneu.innerHTML; var testalt = document.getElementById('tondiva'); var testalt = testalt.innerHTML; if(testneu>testalt){ play_sound('your-turn'); document.getElementById('tondiva').innerHTML=testneu; document.getElementById('tondiv').innerHTML=testneu; document.getElementById('tondivb').innerHTML=testneu; }}function test(){ var testalt = document.getElementById('tondiva'); var testalt = testalt.innerHTML; var testatts = document.getElementById('tondivb'); var testatts = testatts.innerHTML; if(testatts>testalt){ document.getElementById('tondiva').innerHTML=testatts; document.getElementById('tondiv').innerHTML=testatts; document.getElementById('tondivb').innerHTML=testatts; play_sound('alarm-frenzy');}else{ play_msg_sound();} }function hackalarm(){ play_this_sound('alarm-frenzy');}function play_sound(dieser) { play_this_sound(dieser); }function play_this_sound(dieser){ var checkbox = document.getElementById('soundbox');if (checkbox.checked) { var x = document.getElementById(dieser); x.play(); } }function show_upload() { l=parseInt((screen.availWidth-650)/2); t=parseInt((screen.availHeight-410)/2); p='width=650,height=200,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=0,left='+String(l)+',top='+String(t); upload = window.open('popup.who?action=upload&sid='+param('sid'),'Uploader',p); setTimeout('upload.focus();',200);}function show_advertise() { l=parseInt((screen.availWidth-650)/2); t=parseInt((screen.availHeight-410)/2); p='width=468,height=60,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=0,left='+String(l)+',top='+String(t); upload = window.open('popup.who?action=advertise&sid='+param('sid'),'Uploader',p); setTimeout('upload.focus();',200);}function show_console(type) { l=parseInt((screen.availWidth-500)/2); t=parseInt((screen.availHeight-300)/2); p='width=500,height=300,toolbar=0,menubar=0,location=0,status=0,resizable=0,scrollbars=1,left='+String(l)+',top='+String(t); console = window.open('popup.who?action=console&do=selpage&sid='+param('sid')+'&type='+type,'Addressbuch',p); setTimeout('console.focus();',200);}function show_pay(link) { if(document.widerruf.accept.checked) { l=parseInt((screen.availWidth-450)/2); t=parseInt((screen.availHeight-700)/2); p='width=450,height=700,toolbar=0,menubar=0,location=0,status=0,resizable=0,left='+String(l)+',top='+String(t); pay = window.open(link,'Bezahlvorgang',p); setTimeout('pay.focus();',200); } else { alert('Die Widerrufsbelehrung wurde nicht akzeptiert - Der Kauf kann nicht stattfinden.'); }}function popup_close() { if(abook) abook.close(); if(notices) notices.close(); if(chat) chat.close(); if(upload) upload.close(); if(payment) payment.close(); if(games) games.close(); if(impressum) impressum.close();}function setCaret(obj) { if(obj.createTextRange) { obj.caretPos = document.selection.createRange().duplicate(); }}function smily(str) { var txtbox=document.formular.text; if(txtbox.createTextRange && txtbox.caretPos) { txtbox.caretPos.text=' '+str+' '; } else { txtbox.value+=' '+str+' '; } txtbox.focus(txtbox.caretPos);}function getLay(id) { if(document.getElementById) return document.getElementById(id); if(document.all) return eval('document.all.'+id); return 0;}function catcherr(){ return true;}function ch_all(e,ks) { for(i=0;i