function getCookie(name) { // use: getCookie("name"); var index = bikky.indexOf(name + "="); if (index == -1) return null; index = bikky.indexOf("=", index) + 1; // first character var endstr = bikky.indexOf(";", index); if (endstr == -1) endstr = bikky.length; // last character return unescape(bikky.substring(index, endstr)); } function Open (c) { window.open(c, 'chat', 'scrollbars=yes,status=no,resizable=yes,toolbar=no,menubar=no,location=no'); } var req; function loadXMLDoc(url) { // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(); } } } function processReqChange() { // only if req shows "complete" if (req.readyState == 4) { // only if "OK" if (req.status == 200) { response = req.responseText.split("\r\n"); if(response[0]=="