/* mywebsite.js ----------- Version 1.0.1 Last edited - 24.01.2003 by Thomas Gradisnik Copyright (C) 2003, Thomas Gradisnik (thomas.gradisnik@sitox.net) Version 1.0.1: -> check -> skinshow Version 1.0.0: -> Init-Version */ var status = false; mwen = "scripte/mywebsite/mywebsite.edit.php"; function openWin(sx,sy,id){ // Richtige Größe var width = ((screen.availWidth>(sx+36)) ? (sx+36) : screen.availWidth); var height = ((screen.availHeight>(sy+50)) ? (sy+50) : screen.availHeight); // Fenster schon offen? if(status == true) foto.close(); // Fenster öffnen foto=window.open(id,"Klassenfoto","width="+width+",height="+height+",left="+(screen.availWidth/2-width/2)+",top="+(screen.availHeight/2-height/2)+",location=no,menubar=no,resizable=no,hotkeys=no,scrollbar=no,status=no,toolbar=no"); // Fenster ist geöffnet status = true; } function gbselectall(nr) { var i; // Jede Checkbox markieren for (i=0;i(chars-5)) { break }; anz+=5; } else if (s=='\"') { if (anz>(chars-6)) { break }; anz+=6; } else if (s=='<' || s=='>') { if (anz>(chars-4)) { break }; anz+=4; } else { if (anz>(chars-1)) { break }; anz++; } len = i+1; } if (msg.length> len) { document.forms[0].text.value = msg.substring(0,len); } } function skinshow(skin) { var skinwindow = window.open(skin,"Skin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=510,height=800,resizable=0"); } var serverpath = "http://" + location.host + "/"; var myopener = window.opener; function mywebsite(id) { try { if (myopener.parent.content.location.href == null) { throw("site_err"); } else { myopener.parent.content.location.href = serverpath + "scripte/mywebsite/mywebsite.php?viewid="+id; } } catch(e) { var newwindow=window.open(serverpath + "scripte/mywebsite/mywebsite.php?viewid="+id, "newwindow"); newwindow.focus(); window.close(); } } function checkparent() { var root = "http://"+top.location.host; if ((parent.location.href.indexOf(mwen + "?mwecontent=")) == -1 && (parent.location.href.indexOf(mwen) != (parent.location.href.length - mwen.length))) { self.location.replace(root + "/" + mwen + "?mwecontent=" + escape(self.location.href)); } }