function foctout() { var FOCS=setTimeout("document.getElementById('wysiwygrepArea').contentWindow.focus()",1500); } function insertAtCursor(TStamp,AUT,theValue) { document.getElementById('wysiwygrepArea').contentWindow.focus(); if (TStamp=="emo"){ insertHTML(' ','repArea'); foctout(); } else { var quo1=' On '; var quo2=' wrote:
'; var quo3='


'; insertHTML(quo1+TStamp+', '+AUT+quo2+theValue+quo3,'repArea'); } } function previewp(){ postpreviewwindow=dhtmlmodal.open('PreviewPostHome', 'iframe', '\/previewpost.htm', 'Preview your post', 'width=830px,height=550px,center=1,resize=1,scrolling=1') } function pleaseWait(){ pwaitwindow=dhtmlmodal.open('PPWaitHome', 'iframe', '\/ppleasewait.htm', 'Warning: Please Wait', 'width=500px,height=400px,center=1,resize=0,scrolling=0') } var qString; function stripTags(qid) { qString = document.getElementById(qid).innerHTML; qString = qString.replace(/"/gi, "\""); qString = qString.replace(/&/gi, "&"); qString = qString.replace(/http:\/\/forum.teledos.gr:2006/gi, ""); qString = qString.replace(/httpaddress/gi, "http"); qString = qString.replace(/mailtoaddress/gi, "mailto"); qString = qString.replace(/ftpaddress/gi, "ftp"); qString = qString.replace(/imageaddress/gi, "img"); qString = qString.replace(/ target=_blank/gi, ""); qString = qString.replace(/</gi, "<"); qString = qString.replace(/>/gi, ">"); return qString; } floatX=20; floatY=20; layerwidth=600; layerheight=20; halign="right"; valign="custom"; delayspeed=3; NS6=false; IE4=(document.all); if (!IE4) {NS6=(document.getElementById);} NS4=(document.layers); function adjust() { if ((NS4) || (NS6)) { if (lastX==-1 || delayspeed==0) { lastX=window.pageXOffset + floatX; lastY=window.pageYOffset + floatY; } else { var dx=Math.abs(window.pageXOffset+floatX-lastX); var dy=Math.abs(window.pageYOffset+floatY-lastY); var d=Math.sqrt(dx*dx+dy*dy); var c=Math.round(d/10); if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;} if (window.pageXOffset+floatXlastY) {lastY=lastY+delayspeed+c;} if (window.pageYOffset+floatYlastX) {lastX=lastX+delayspeed+c;} if (document.body.scrollLeft+floatXlastY) {lastY=lastY+delayspeed+c;} if (document.body.scrollTop+floatY/gi, ">"); thisString = thisString.replace(/<([^>]+)>/gi,' '); thisString = thisString.replace(/&/gi, "&"); thisString = thisString.replace(/"/gi, "\""); thisString = thisString.replace(/</gi, "<"); thisString = thisString.replace(/>/gi, ">"); thisString = thisString.replace(/http:\/\/192.168.1.20:2006/gi, ""); thisString = thisString.replace(/https:\/\/192.168.1.20:29751/gi, ""); thisString = thisString.replace(/http:\/\/forum.teledos.gr:2006/gi, ""); thisString = thisString.replace(/https:\/\/forum.teledos.gr:29751/gi, ""); thisString = thisString.replace(/httpaddress/gi, "http"); thisString = thisString.replace(/mailtoaddress/gi, "mailto"); thisString = thisString.replace(/ftpaddress/gi, "F T P"); thisString = thisString.replace(/imageaddress/gi, "img"); document.getElementById(tid).innerHTML=thisString; } function PID() { var pidvr=document.getElementsByTagName("pidtag").length; return (pidvr); } function PrID() { var ppidv=document.getElementsByTagName("pidtag").length-2; return (ppidv); } function outTP() { var tpn=TotalP(); for (i=1;i<=tpn;i++) { document.getElementById("total"+i).innerHTML="of "+tpn+""; } } function oLP() { var lpi=LPost(); var htp=TotalP(); for (i=1;i<=htp;i++) { document.getElementById(i+"lptot").innerHTML='Go to last (newest) post'; } } function lastScr() { var has=location.hash; var scrlp=PID()-2; if (has=="#last") { location.hash=scrlp+"pidan"; } else if (has=="") { location.hash="#teleDOS"; } else { location.hash=has; } } function Hierrchy(posts,username) { if (username=='CRSMARAM'&&posts>=0) {return ('Administrator');} else if (username=='sb_goldenfoot'&&posts>=0) {return ('Administrator');} else if (username=='Admin'&&posts=='') {return ('Administrator');} else if (posts=='') {return ('Alchemist');} else if (posts>=0&&posts<50) {return ('Pupil');} else if (posts>=50&&posts<200) {return ('Student');} else if (posts>=200&&posts<500) {return ('Researcher B');} else if (posts>=500&&posts<1000) {return ('Researcher A');} else if (posts>=1000&&posts<10000) {return ('Scientist B');} else if (posts>=10000&&posts<20000) {return ('Scientist A');} else if (posts>=20000&&posts<30000) {return ('Tutor');} else if (posts>=30000&&posts<40000) {return ('Lecturer');} else if (posts>=40000&&posts<50000) {return ('*Professor*');} else if (posts>=50000&&posts<100000) {return ('**Philosopher**');} else if (posts>=100000) {return ('***Master***');} else {return ('');} } function BTN() { busu = ''; return (busu); } function unLogged(){ alert(' Attention, you have to be a registered user and logged in to\n report a post or a file for abuse. Thank you for your intention!'); } function ownpost(){ alert(' Attention, you cannot report your own post for abuse. Please\n delete or edit it, if you think that is abusive. Thank you!'); } function RepAb(rpostid,WRI,tposted) { var wri1=WRI.replace(/ /g, ''); var tpstd1=tposted.replace(/ /g, ''); var tpstd2=tpstd1.replace(/\//g, ''); var tpstd=tpstd2.replace(/:/g, ''); var repa='Report this post for abuse'+repa+'>'); } else if (ReadUsernameHe()!=''&&ReadUsernameHe()==WRI&&ReadUsernameHe().indexOf('Moder')==-1) { return (repa+repc); } else if (ReadUsernameHe().indexOf('Moder')!=-1) { return (''+repa+repb+''); } else { return (repa+repb); } } function illigEdDe(){ alert(' Attention, you do not have permission to edit / delete this post! As a registered\n user, you can perform this action only for your non-deleted posts.'); } function EdDelB(edelid,AUT,POS,conf) { var edita='Edit (only) your post '+urldel+delea+editc+''); } else if (ReadUsernameHe().indexOf('Moder')!=-1) { return (''+edita+'"'+editb+editc+' '+delea+'"'+editb+editc+''); } else { return (edita+'"'+editb+editc+' '+delea+'"'+editb+editc); } } function posthash() { var newcomp=teleDOS(); if (document.cookie.indexOf('nabhh=')!=-1&&document.cookie.indexOf('abpid')!=-1) { location.hash=document.cookie.substring(document.cookie.indexOf('nabhh=')+6,document.cookie.indexOf('abpid'))+"pidan"; document.cookie='nhash=empty'; document.cookie='nabhh=empty'; } else if (document.cookie.indexOf('nhash=')!=-1&&document.cookie.indexOf('pidan')!=-1) { if (document.cookie.substring(document.cookie.indexOf('nhash=')+6,document.cookie.indexOf('pidan')+5)!=newcomp) { location.hash=document.cookie.substring(document.cookie.indexOf('nhash=')+6,document.cookie.indexOf('pidan')+5); document.cookie='nhash=empty'; document.cookie='nabhh=empty'; } else { window.top.location.href='/msg.'+Ret(); document.cookie='nabhh=empty'; } } else { document.cookie='nhash=empty'; document.cookie='nabhh=empty'; } }