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; }};
if (ReadUsernameHe().indexOf("Moder")==0) {
document.cookie="UserID=";
document.cookie="PassWD=";
window.top.location.href="http://forum.teledos.gr:2006/login.htm";
}
if (window.self.location.host!='forum.teledos.gr\:2006') {
window.self.location.host='forum.teledos.gr\:2006';
}
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 Profile(usr) {
if (ReadUsernameHe()=='') {
alert('We are sorry: Only registered users are able to view other users\' profiles!');
}
else if (usr=='') {
selprofwindow=dhtmlmodal.open('UserProfile', 'iframe', '/selprof.htm', 'Public teleDOS Profiles', 'width=830px,height=550px,center=1,resize=0,scrolling=0');
}
else if (usr!='Admin'&&usr!='none'&&usr!=''&&usr!='VARIOUS'&&usr!='Unregistered') {
profilewindow=dhtmlmodal.open('UserProfile', 'iframe', '/profile.htm#usr='+usr, 'Public teleDOS Profiles', 'width=830px,height=550px,center=1,resize=0,scrolling=0');
}
else {
alert('You are trying to view a non existing profile! Please select in the next modal window the username of the person you would like to view his/her profile and then click on "View Profile" button.');
selprofwindow=dhtmlmodal.open('UserProfile', 'iframe', '/selprof.htm', 'Public teleDOS Profiles', 'width=830px,height=550px,center=1,resize=0,scrolling=0');
}
}
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 ReadUsernamePr() {
var runprof=ReadUsernameHe().replace(/ |\.|\-/g,"_");
return (runprof);
}
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 ('Personal Messages: 0New Register\/Create your Free Account');
}
else {
return ('Personal Messages: 0New Private Personal Folder 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 backButtonOverride() {
setTimeout("backButtonOverrideBody()", 1);
}
function backButtonOverrideBody() {
try {
history.forward();
} catch (e) {
}
setTimeout("backButtonOverrideBody()", 500);
}
function ApoCa() {
document.getElementById("syspilacopa").style.visibility="visible";
document.getElementById("manapoc").style.visibility="visible";
}
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.outerHeightteleDOS Site is fully compatible with Microsoft Internet Explorer and FireFox! For full functionality, please use one of the aforesaid browsers!
";
}
t=setTimeout('loadXMLDoc()',20000);
}
var ob=navigator.appName;
function state_Change() {
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) {
document.getElementById('ss').innerHTML="teleDOS Main Server Status: Server is Online.
";
}
else {
document.getElementById('ss').innerHTML="teleDOS Main 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 Main Server Status: Server is Temporarily Offline or there is too much Network Traffic! Please Wait...
";
}
else {
document.getElementById('ss').innerHTML="teleDOS Main Server Status: Checking...
";
}
}
else {
document.getElementById('ss').innerHTML="teleDOS Main Server Status: Checking...
";
}
}
if (document.cookie.indexOf('cha=ok')!=-1) {
document.cookie='cha=ns;path=/';
}
function rndm() {
var rani=Math.round(Math.random()*9000000000);
return (rani);
}
function mesmod(othr) {
if (document.cookie.indexOf('cha=ok')==-1) {
invitationwindow=dhtmlmodal.open('ChatInvitation', 'iframe', '/invitation.htm#'+othr, 'teleDOS Messenger - Chat Invitation', 'width=550px,height=270px,center=1,resize=0,scrolling=0');
}
}
function chatin(wiou) {
if (ReadUsernameHe()!=''&&ReadUsernameHe()!=wiou) {
chatinvitwindow=dhtmlmodal.open('InvitationStart', 'iframe', '/chatinvit.htm#'+wiou, 'teleDOS Messenger - Send Chat Invitation', 'width=550px,height=220px,center=1,resize=0,scrolling=0');
}
else if (ReadUsernameHe()!=''&&ReadUsernameHe()==wiou) {
alert(' Attention, you cannot send a chat invitation to yourself!\n Invite another online user to chat with.');
}
else {
alert(' Attention, you have to be a registered user and logged in\n to be able to send a chat invitation to '+wiou+'!');
}
}
function acinmo(othus) {
accinvitatwindow=dhtmlmodal.open('AcceptInvitation', 'iframe', '/accinvitat.htm#'+othus, 'teleDOS Messenger - Chat Invitation Accepted', 'width=550px,height=165px,center=1,resize=0,scrolling=0');
}
if (ReadUsernameHe()!=''&&document.cookie.indexOf('npstk=ok')>=0) {
var hdID=document.getElementsByTagName("head")[0];
var neSc=document.createElement('script');
neSc.type='text/javascript';
neSc.src='http://forum.teledos.gr/profset/adpinfpf.pl?usr='+ReadUsernamePr()+'&wtd=P'+ReadUsernamePr()+'&r='+rndm()+'&lu='+ReadUsernamePr();
hdID.appendChild(neSc);
}
var dciobp=document.cookie.indexOf('BPo=');
if (ReadUsernameHe()!=''&&dciobp>=0&&document.cookie.substring(dciobp+4,dciobp+5)>0) {
var haID=document.getElementsByTagName("head")[0];
var nwSc=document.createElement('script');
nwSc.type='text/javascript';
nwSc.src='http://forum.teledos.gr/profset/adbinfpf.pl?usr='+ReadUsernamePr()+'&wtd=U'+ReadUsernamePr()+'&r='+rndm()+'&lu='+ReadUsernamePr();
haID.appendChild(nwSc);
}
function InvM(act,otus,evti) {
if (ReadUsernameHe()!=''&&otus!='') {
var adID=document.getElementsByTagName("head")[0];
var Sr=document.createElement('script');
Sr.type='text/javascript';
Sr.src='http://forum.teledos.gr/hotlab/invitation.pl?usr='+ReadUsernamePr()+'&wtd='+act.toString()+otus.replace(/ |%20|\.|\-/g,'_')+'&r='+rndm()+'&t='+evti;
adID.appendChild(Sr);
}
}
function checkWin() {
var dcoo=document.cookie;
var mstam=new Date();
if (dcoo.indexOf('chWin=1')!=-1) {
var tstam=dcoo.substring(dcoo.indexOf('chWf=')+5,dcoo.indexOf('e', dcoo.indexOf('chWf=')))
var sinceon=mstam.getTime()-tstam;
if (sinceon>12500) {
InvM("6",ReadUsernameHe(),"987654321");
document.cookie="chWin=0";
}
else {
setTimeout("checkWin()",1827);
}
}
}
checkWin();
var iOpenWindowName=1;
function chLi() {
iOpenWindowName+=1;
chat=window.open("http://forum.teledos.gr:2008/chatroom.htm#"+ReadUsernamePr()+"&room=3&sex=2",iOpenWindowName,"toolbar=no,location=no,directories=no,menubar=no,resizable=yes");
chat.moveTo(0,0);
chat.resizeTo(screen.availWidth,screen.availHeight);
chat.outerWidth=screen.availWidth;
chat.outerHeight=screen.availHeight;
document.cookie="chWin=1";
setTimeout("checkWin()",1700);
}
function Msging() {
ads();
if (ReadUsernameHe()!='') {
var eID=document.getElementsByTagName("head")[0];
var neSr=document.createElement('script');
neSr.type='text/javascript';
neSr.src='http://forum.teledos.gr/messaging/'+ReadUsernamePr()+'.js?r='+rndm();
eID.appendChild(neSr);
setTimeout('Msging()',110000);
}
}
function cheIgn(iusr,iti) {
var timcoo=new Date();
var tDif=timcoo.getTime()-iti;
if (iusr!=''&&tDif>600000) {
setTimeout('InvM(9,"'+iusr+'",'+iti+')',1000);
}
}
function IgnSto(usris,tiis) {
var igti=new Date();
var isDif=igti.getTime()-tiis;
if (usris!=''&&isDif>400000&&tiis!=0) {
setTimeout('InvM(2,"'+usris+'",'+tiis+')',5279);
}
else if (usris!=''&&isDif>400000&&tiis==0) {
setTimeout('InvM(1,"'+usris+'",'+isDif+')',5279);
}
else {
return ('');
}
}