function ReadUsernameHe() {var dcexist = "UserID" + "="; var Dc0 = "";if (document.cookie.length > 0) {offset = document.cookie.indexOf(dcexist);if (offset != -1) {offset += dcexist.length; end = document.cookie.indexOf(";", offset);if (end == -1) { end = document.cookie.length; } if(unescape(document.cookie.substring(offset,end))=="") return ""; else return unescape(document.cookie.substring(offset,end));} else { return Dc0; } } else { return Dc0; }}; function ReadCookie(dcname) {var dcexist = dcname + '='; var Dc0 = 'Guest';if (document.cookie.length > 0) {offset = document.cookie.indexOf(dcexist);if (offset != -1) {offset += dcexist.length; end = document.cookie.indexOf(';', offset);if (end == -1) { end = document.cookie.length; } return unescape(document.cookie.substring(offset,end));} else { return Dc0; } } else { return Dc0; }}; if (ReadUsernameHe().indexOf("Moder")==0) { document.cookie="UserID="; document.cookie="PassWD="; window.top.location.href="http://forum.teledos.gr:2006/login.htm"; } if (location.host!='forum.teledos.gr\:2008') { window.top.location.href='http://forum.teledos.gr:2008'; } function OnUserList(n) { roomouwindow=dhtmlmodal.open('OnlineUsers', 'iframe', '/users.ghp?username='+document.login.user.value+'&password=&room='+(n+1), 'Online Users in '+(n+1)+'. ChatRoom', 'width=400px,height=550px,center=1,resize=1,scrolling=1'); } function OnFindUser() { var wisol=document.login.strUserName.value.replace(/ |\.|\-/g,"_"); if(wisol==null||wisol=="Who_is_online?"||wisol.length<1) { document.login.strUserName.select(); alert('Please type the NickName of the user you want to find online!'); } else { fuwindow=dhtmlmodal.open('FindOnlineUser', 'iframe', 'finduser.ghp?username='+wisol, 'Find User "'+wisol+'" Online', 'width=400px,height=260px,center=1,resize=0,scrolling=1'); } } function validstr(str) {var s,i,j; s="+=|'#&<>%*`^/\\\";,. "; str1=str.value.toString(); if (str.value.length<1||str.value=='Guest'){alert("Please select a NickName!");str.value='';str.focus(); return false;} for (i=0; i%*`^/\\\";,.SPACE"); str.focus(); return false; }}}return true; } function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if (window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if (document.all)// ie window.external.AddFavorite(url, title); } function Jtest() { return ('JavaScript enabled.'); } function searchm() { searchmachinewindow=dhtmlmodal.open('SearchMachine', 'iframe', 'http:\/\/forum.teledos.gr\/GoogleSearch\/GoogleSearchForm.htm', 'teleDOS Search Machine powered by Google', 'width=550px,height=180px,center=1,resize=1,scrolling=1'); } function ReadUsername3() { if (ReadUsernameHe()=='') { return ('Guest'); } else { return (ReadUsernameHe()); } } function pming(usr) { if (ReadUsernameHe()!='') { if (usr=='none'||usr==''||usr=='VARIOUS'||usr=='Unregistered') { alert('Sorry, you cannot send a Personal Message to "none" user!'); } else { alert('Personal Messaging teleDOS Service is not ready yet.'); } } else { alert(' Attention, you have to be a registered user and logged in to\n send a Personal Message to '+usr+'. Thank you!'); } } function ReadUsernameM() { if(ReadUsernameHe()=='') { return ('Login to read your messages\/mails or to compose and send a new one.Personal Messages: 0New   For full access rihgts and high up\/download speeds: Click here to create your account\! You are just a few seconds away\!Register\/Create your Free Account'); } else { return ('Read your messages\/mails or compose and send a new one.Personal Messages: 0New   Click here to visit your personal folder. Inside this private folder, you can upload your files if want to store them as a personal backup away from your computer site. No one else can see\/access your personal folder and the files\/folders inside it\!Private Personal Folder   Read the terms of teleDOS Service.Terms of Service'); } } function ReadUsername2() { if(ReadUsernameHe()=='') { return ('Not logged in or browser\'s privacy setting is too "High"!'); } else { return ('Logged in.'); } } function cook() { if (navigator.cookieEnabled==0) { return ('You need to enable cookies for teleDOS Forum Site to function properly! For how to do this, please click here.'); } else { return ('Cookies enabled.'); } } function checkTime(i) { if (i<10) { i="0"+i; } return i; } function ranID() { var raid = Math.round(Math.random()*9000000000); return (raid); } function winresize() { top.window.moveTo(0,0); if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight); } else if (document.layers||document.getElementById) { if (top.window.outerHeight Rooms. "+OnUs+" Online User(s). Server is Online.
"; document.getElementById("foc").value="ok"; } else { document.getElementById('ss').innerHTML="teleDOS Chat Server Status: Server is Temporarily Offline or there is too much Network Traffic! Please Wait...
"; winscroll(); } } else if (xmlhttp.readyState==2) { if (ob=="Netscape") { document.getElementById('ss').innerHTML="teleDOS Chat Server Status: Server is Temporarily Offline or there is too much Network Traffic! Please Wait...
"; } else { document.getElementById('ss').innerHTML="teleDOS Chat Server Status: Checking...
"; } } else { document.getElementById('ss').innerHTML="teleDOS Chat Server Status: Checking...
"; } } var gendr; function findgen() { var url="/register.ghp?username="+ReadCookie('UserID').replace(/ |\./g,'_')+"&password="+ReadCookie('PassWD')+"&rid="; gendr=null; if (window.XMLHttpRequest) { gendr=new XMLHttpRequest(); } else if (window.ActiveXObject) { try { gendr=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ try { gendr=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){} } } if (gendr!=null) { gendr.onreadystatechange=stChange; gendr.open("GET",url+ranID(),true); gendr.send(null); } else { alert(" teleDOS Site is fully compatible with Microsoft Internet Explorer and FireFox!\n For full functionality, please use one of the aforesaid browsers!"); } } function stChange() { if (gendr.readyState==4&&gendr.status==200) { var regsex=gendr.responseText; var weisit=regsex.indexOf('id="SeXind"'); var witsex=regsex.substring(regsex.indexOf("ScheckedX",weisit)-1,regsex.indexOf("ScheckedX",weisit)); document.getElementById('genimg').src='/images/'+witsex+'.gif'; document.login.sex.value=witsex; document.getElementById("r"+witsex).checked=true; } } function chGen(sx) { var headID=document.getElementsByTagName("head")[0]; var nScr=document.createElement('script'); nScr.type='text/javascript'; nScr.src='http://forum.teledos.gr/profset/gender.pl?rid='+ranID()+'&usr='+document.login.user.value.replace(/ |\./g,"_")+'&G='+sx; headID.appendChild(nScr); }