var xmlHttp = false; try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { xmlHttp = false; } } if (!xmlHttp && typeof XMLHttpRequest != "undefined") { xmlHttp = new XMLHttpRequest(); } function checkSess(room,nick){ xmlHttp.open("GET","checksess.php?room="+room+"&nick="+nick,true); xmlHttp.send(null); } var chatwin = null; function animations() { window.open("/animFolder/animasyon.htm","","scrollbars=1,width=420,height=700,left=300,top=250"); } function genis_login() { window.open("vchat.php", "", "WIDTH=770, HEIGHT=570, resizable=no, status=yes"); } function uyeyap(path) { window.open(path, "Uyelik", "WIDTH=770, HEIGHT=570, resizable=yes, status=yes"); } function uyeol() { window.open("uyeol.php", "Uyelik", "WIDTH=770, HEIGHT=570, resizable=yes, status=yes"); } function changepw() { window.open("forgotpass.php", "ŽifreDešiž", "WIDTH=770, HEIGHT=520, resizable=yes, status=yes"); } function user_login() { if (!chatwin || chatwin.closed){ // if (chatwin == null){ chatwin = window.open("vchat.php", "", "height=700, width=860, left=0, top=0, menubar=NO, toolbar=NO, status=NO, scrollbars=NO, resizable=NO"); } chatwin.focus(); } function xban_login() { window.open("banac.php", "", "WIDTH=860, HEIGHT=700, resizable=no, status=no"); } function moderator_login() { window.open("vchat.php?noauth=1", "", "WIDTH=860, HEIGHT=700, resizable=no, status=no"); } function profileWindow(url) { window.open(url, "UserProfile", "height=500, width=790, left=0, top=0, menubar=NO, toolbar=NO, status=NO, scrollbars=YES, resizable=YES"); } function OpenRoom(rID) { document.vschat.ReconnectClient(rID); document.getElementById(roomID).style.backgroundColor="#e5e5e5"; document.getElementById(rID).style.backgroundColor="#800000"; roomID = rID; } function ChangeRoom(rID) { location.href="vchat.php?roomid="+rID; } function newWindow(url,title) { window.open(url, title, "WIDTH=830, HEIGHT=640, resizable=no, status=no"); } /* function checkSess(obj,room,nick){ if (document.all) { document.all.myses.src = "checksess.php?room="+room+"&nick="+nick; }else{ obj = document.getElementById("myses"); obj.src = "checksess.php?room="+room+"&nick="+nick; } } */ function resimdegis(obj){ pic = obj.options[obj.selectedIndex].value; for(i=0;i