imgSquarePlus = new Image(); imgSquarePlus.src = "images/squarePlu.gif"; imgSquareMinus = new Image(); imgSquareMinus.src = "images/squareMin.gif"; function toggleMenu(Obj) { if (document.getElementById(Obj)) { if (document.getElementById(Obj).style.visibility=="hidden") { document.getElementById(Obj).style.visibility="visible"; document.getElementById(Obj).style.display="inline"; document.getElementById(Obj + 'Img').src=imgSquareMinus.src; if(document.forms[Obj]) document.forms[Obj].text.focus(); } else { document.getElementById(Obj).style.visibility="hidden"; document.getElementById(Obj).style.display="none"; document.getElementById(Obj + 'Img').src=imgSquarePlus.src; } } } //DHTML Window script- Copyright Dynamic Drive (http://www.dynamicdrive.com) //For full source code, documentation, and terms of usage, //Visit http://www.dynamicdrive.com/dynamicindex9/dhtmlwindow.htm var i=0; var dragapproved=false var minrestore=0 var initialwidth,initialheight var ie5=document.all&&document.getElementById var ns6=document.getElementById&&!document.all var s; function makeBox(roomid,userid) { if(roomid==0) { document.all.c.src="http://www.suedstern.org/chat/index.php?PHPSESSID=087a38d0cc63a78be9a71c98870ce5d0&roomId="+roomid+"&userId="+userid } else { i++; id = roomid; div = document.createElement("div"); div.setAttribute("id","chat"+id); document.body.appendChild(div); /*iframe = document.createElement("iframe"); iframe.setAttribute("id","cframe"+id); iframe.setAttribute("name","cframe"+id); iframe.setAttribute("frameborder",0); iframe.setAttribute("src","/chat/index.php?PHPSESSID=087a38d0cc63a78be9a71c98870ce5d0&roomId="+roomid+"&userId="+userid); iframe.setAttribute("scrolling","no"); iframe.setAttribute("width","100%"); iframe.setAttribute("height","100%");*/ document.getElementById("chat"+id).innerHTML = '
'; //document.getElementById("dwindowcontent"+id).appendChild(iframe); } } function iecompattest(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function drag_drop(e){ elem = (!ie5) ? e.target : event.srcElement; id = elem.id; if(document.getElementById("dwindow"+id)) { if (ie5&&dragapproved&&event.button==1){; document.getElementById("dwindow"+id).style.left=tempx+event.clientX-offsetx+"px" document.getElementById("dwindow"+id).style.top=tempy+event.clientY-offsety+"px" } else if (ns6&&dragapproved){ document.getElementById("dwindow"+id).style.left=tempx+e.clientX-offsetx+"px" document.getElementById("dwindow"+id).style.top=tempy+e.clientY-offsety+"px" } } } function initializedrag(id,e){ offsetx=ie5? event.clientX : e.clientX offsety=ie5? event.clientY : e.clientY document.getElementById("dwindowcontent"+id).style.display="none" //extra tempx=parseInt(document.getElementById("dwindow"+id).style.left) tempy=parseInt(document.getElementById("dwindow"+id).style.top) dragapproved=true if(document.getElementById("dwindow"+id)) document.getElementById("dwindow"+id).onmousemove=drag_drop } function maximize(){ if (minrestore==0){ minrestore=1 //maximize window //document.getElementById("maxname").setAttribute("src","restore.gif") document.getElementById("dwindow"+id).style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px" document.getElementById("dwindow"+id).style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px" } else{ minrestore=0 //restore window //document.getElementById("maxname").setAttribute("src","max.gif") document.getElementById("dwindow"+id).style.width=initialwidth document.getElementById("dwindow"+id).style.height=initialheight } document.getElementById("dwindow"+id).style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px" document.getElementById("dwindow"+id).style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px" } function closeit(id){ //alert(parent.frames["cframe"+id].document.frmshoutbox.txtmessage.value) document.all.c.src="http://www.suedstern.org/chat/delroom.php?PHPSESSID=087a38d0cc63a78be9a71c98870ce5d0&roomId="+id document.getElementById("dwindow"+id).style.display="none" //clearInterval(s); } function stopdrag(id){ dragapproved=false; document.getElementById("dwindow"+id).onmousemove=null; document.getElementById("dwindowcontent"+id).style.display="" //extra }