// JavaScript Document function openChat(username,password,friend,nick){ var mywin; mywin = window.open("http://dev.riplounge.com/messenger/messenger.php?u=&p=&f="+toHex(friend)+"&n="+nick,toHex(username+friend)+Math.round(Math.random(1999,2000)*1000), "width=550,height=380,status=no,toolbar=no,,resizable=no"); mywin.focus(); } function toHex(Str) {var HexVal = "";for (i=0; i is trying to chat with you, do you accept?
' + '
  ' + ''; if (document.layers) { if (document.layers[id]) { return; } var layer=document.layers[id]=new Layer(width); layer.name = id; layer.left=left; layer.top=top; layer.clip.height=height; layer.visibility = 'show'; layer.zIndex=zindex; layer.bgColor=bgcolor; layer.innerHTML = msg; }else if (document.all) { if (document.all[id]) { return } var layer= '\n
' + msg +'
'; document.body.insertAdjacentHTML("BeforeEnd",layer); }else if(document.getElementById){ var layer = document.createElement ('div'); layer.setAttribute ('id', id); document.body.appendChild (layer); var ly = document.getElementById(id); ly.style.position= "absolute"; ly.style.left= left+"px"; ly.style.top= top+ "px"; ly.style.width= width+ "px"; ly.style.height= height+ "px"; ly.style.backgroundColor = bgcolor; ly.style.borderColor="#000000"; ly.style.borderStyle="solid"; ly.style.borderWidth= "1px"; ly.style.color = txtcolor; ly.style.textAlign= "center"; ly.innerHTML = msg; } } function removeLayer(id){ if (document.layers && document.layers[id]) { document.layers[id].visibility='hide' delete document.layers[id] } if (document.all && document.all[id]) { document.all[id].innerHTML='' document.all[id].outerHTML='' }else if(document.getElementById){ var b = document.body; var layer = document.getElementById(id); b.removeChild(layer); } } function changeRoom(uid,roomid){ loggedIn=false; window.location="openvirtualworld.php?uid="+ uid + "&roomid="+roomid; }