if(top.frames.length>0) top.location.href=self.location; function switchClass(obj,strClassName) { obj.className = strClassName; } function mm_swapimgrestore() { var i,x,a=document.mm_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i9) { alert ("Jetzt ist aber mal Schluss mit der bunten Smilyklickerei\n- ist doch kein Kindergarten hier!"); } else { this.document.kommentar.comment.value += smily; i++; } } function check_comment(){ var msg = ""; var subject = this.document.kommentar.subject; var comment = this.document.kommentar.comment; if (subject.value.length > 0){ var reg = /[a-zA-Z]/; if (!reg.exec(subject.value)) { msg += "Fehler: ungültiger Betreff.\n"; subject.value = ""; subject.focus(); } else { if (subject.value.length < 4) { msg += "Fehler: Betreff ist zu kurz.\n"; subject.focus(); } else { if (subject.value=="Betreff" || subject.value=="Fehler: ungültiger Betreff.") { msg += "Fehler: ungültiger Betreff.\n"; subject.value = ""; subject.focus(); } } } } else { msg += "Fehler: Keinen Betreff eingegeben.\n"; subject.focus(); } if (comment.value.length == 0){ msg += "Fehler: Keinen Kommentar eingegeben.\n"; comment.focus(); } else { if (comment.value.length > 5000){ msg += "Fehler: Kommentar ist zu lang. [5000 Zeichenlimit]\n"; } else { if (comment.value.length < 4) msg += "Fehler: Kommentar ist zu kurz.\n"; comment.focus(); } } if (msg != "") { alert (msg); return false; } else { return true; } } function check_login() { error = false; if (document.myplanetmtg.email.value=="" && document.myplanetmtg.password.value=="") { alert("Keine Email und kein Password eingegeben!"); document.myplanetmtg.email.focus(); error = true; return false; } if (document.myplanetmtg.email.value=="") { alert("Keine Email eingegeben!"); document.myplanetmtg.email.focus(); error = true; return false; } if (document.myplanetmtg.password.value=="") { alert("Kein Password eingegeben!"); document.myplanetmtg.password.focus(); error = true; return false; } if (!error) return true; } function check_search() { if (document.cardsearch.name.value=="") { alert("Keinen Suchbegriff eingegeben!"); document.cardsearch.name.focus(); return false; } else { return true; } } function bild(id) { left0 = (window.screen.width - 800)/2; top0 = (window.screen.height - 600)/2; popup = window.open('../archive/bild.html?id='+id,id,'toolbar=no,status=no,statusbar=0,menubar=0,resizeable=no,scrollbars=no,directories=0,locationbar=0,personalbar=no,width=800,height=600,dependent=yes'); popup.moveTo(left0,top0); popup.focus(); } function admin_delete(name,url) { // check which browser -> firefox doesnt supprt "confirm" if (confirm("Den Kommentar von "+name+" wirklich löschen?")) { window.location.href = window.location.pathname+"?"+url; } } function mypmtg_print_decklist(name,dcinr,deckname,main_creatures,main_spells,main_lands,side_creatures,side_spells,side_lands) { popup = window.open('../myplanetmtg/deck_print.php?name='+name+'&dcinr='+dcinr+'&deckname='+deckname+'&main_creatures='+main_creatures+'&main_spells='+main_spells+'&main_lands='+main_lands+'&side_creatures='+side_creatures+'&side_spells='+side_spells+'&side_lands='+side_lands,'deckliste','toolbar=no,status=no,statusbar=0,menubar=0,resizeable=no,scrollbars=no,directories=0,locationbar=0,personalbar=no,width=540,height=694,top=50,left=100'); popup.focus(); } function cardinfo(id) { //left0 = (window.screen.width - 200)/3; top0 = (window.screen.height - 284)/3; popup = window.open('/otherstuff/cardinfo_frame.html?id='+id,'cardinfo','width=800,height=750,toolbar=no,status=no,statusbar=0,menubar=0,resizeable=no,scrollbars=no,directories=0,locationbar=0,personalbar=no,dependent=yes,left=320'); popup.moveTo(320,top0); popup.focus(); } function miraclelink (card_edition, card_rarity, sponsorlink_anchor){ self.close(); mg = window.open('http://www.miraclegames.de/d/cards.php?id=index&pid=1&set='+card_edition+'&ra='+card_rarity+'#'+sponsorlink_anchor, '', 'width=screen.width,height=screen.height,toolbar=yes,status=yes,statusbar=1,menubar=1,resizable=yes,scrollbars=yes,directories=1,locationbar=1,personalbar=yes,dependent=no,left=320'); mg.moveTo(0,0); mg.focus(); } function markRow(row, action, colorOver, colorOut) { var domDetect = null; if(colorOut==null) colorOut = ''; if(typeof(window.opera)=='undefined') { domDetect = true; } else { domDetect = false; } if(action=='over') { row.style.backgroundColor = colorOver; } if(action=='out') { row.style.backgroundColor = colorOut; } }