
var sajax_debug_mode=false;var sajax_request_type="POST";var sajax_target_id="";var sajax_failure_redirect="";function sajax_debug(text){if(sajax_debug_mode){ADDRinnerHTML('debug_inner',text+'<br/>')}}
function sajax_init_object(){sajax_debug("sajax_init_object() called..")
var A;if(window.XMLHttpRequest){A=new XMLHttpRequest();}
else if(window.ActiveXObject){var msxmlhttp=new Array('Microsoft.XMLHTTP','Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP');for(var i=0;i<msxmlhttp.length;i++){try{A=new ActiveXObject(msxmlhttp[i]);}catch(e){A=null;}}}
if(!A){sajax_debug("Could not create connection object.");alert("Please enable XMLHTTP");}
return A;}
var sajax_requests=new Array();function sajax_cancel(){for(var i=0;i<sajax_requests.length;i++)
sajax_requests[i].abort();}
function sajax_do_call(func_name,args){var i,x,n;var uri;var post_data;var target_id;sajax_debug("in sajax_do_call().."+sajax_request_type+"/"+sajax_target_id);target_id=sajax_target_id;if(typeof(sajax_request_type)=="undefined"||sajax_request_type=="")
sajax_request_type="GET";uri="http://www.e-tetradio.gr/ajax_index.php?gl=el";if(sajax_request_type=="GET"){if(uri.indexOf("?")==-1)
uri+="?rs="+escape(func_name);else
uri+="&rs="+escape(func_name);uri+="&rst="+escape(sajax_target_id);uri+="&rsrnd="+new Date().getTime();for(i=0;i<args.length-1;i++)
uri+="&rsargs[]="+escape(args[i]);post_data=null;}
else if(sajax_request_type=="POST"){post_data="rs="+escape(func_name);post_data+="&rst="+escape(sajax_target_id);post_data+="&rsrnd="+new Date().getTime();for(i=0;i<args.length-1;i++)
post_data=post_data+"&rsargs[]="+escape(args[i]);}
else{alert("Illegal request type: "+sajax_request_type);}
x=sajax_init_object();if(x==null){if(sajax_failure_redirect!=""){location.href=sajax_failure_redirect;return false;}else{sajax_debug("NULL sajax object for user agent:\n"+navigator.userAgent);return false;}}else{x.open(sajax_request_type,uri,true);sajax_requests[sajax_requests.length]=x;if(sajax_request_type=="POST"){x.setRequestHeader("Method","POST "+uri+" HTTP/1.1");x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}
x.onreadystatechange=function(){if(x.readyState!=4)
return;sajax_debug("received "+x.responseText);var status;var data;var txt=x.responseText.replace(/^\s*|\s*$/g,"");status=txt.charAt(0);data=txt.substring(2);if(status==""){}else if(status=="-")
alert("Error: "+data);else{if(target_id!="")
document.getElementById(target_id).innerHTML=eval(data);else{try{var callback;var extra_data=false;if(typeof args[args.length-1]=="object"){callback=args[args.length-1].callback;extra_data=args[args.length-1].extra_data;}else{callback=args[args.length-1];if((args.length)>1){extra_data=args[args.length-2];}}
callback(eval(data),extra_data);}catch(e){sajax_debug("Caught error "+e+": Could not eval "+data);}}}}}
sajax_debug(func_name+" uri = "+uri+"/post = "+post_data);x.send(post_data);sajax_debug(func_name+" waiting..");delete x;return true;}
function x_get_text(){sajax_do_call("get_text",x_get_text.arguments);}
function x_save_text(){sajax_do_call("save_text",x_save_text.arguments);}
function x_get_atomo(){sajax_do_call("get_atomo",x_get_atomo.arguments);}
function x_save_atomo(){sajax_do_call("save_atomo",x_save_atomo.arguments);}
function x_get_atoma(){sajax_do_call("get_atoma",x_get_atoma.arguments);}
function x_check_xr_un(){sajax_do_call("check_xr_un",x_check_xr_un.arguments);}
function x_check_xr_email(){sajax_do_call("check_xr_email",x_check_xr_email.arguments);}
function x_auth(){sajax_do_call("auth",x_auth.arguments);}
function x_logout(){sajax_do_call("logout",x_logout.arguments);}
function x_password_recovery(){sajax_do_call("password_recovery",x_password_recovery.arguments);}
function x_auth_beacon(){sajax_do_call("auth_beacon",x_auth_beacon.arguments);}
function x_get_comments(){sajax_do_call("get_comments",x_get_comments.arguments);}
function x_save_comment(){sajax_do_call("save_comment",x_save_comment.arguments);}
function x_make_confirm_string(){sajax_do_call("make_confirm_string",x_make_confirm_string.arguments);}
function x_inform_comment_masters(){sajax_do_call("inform_comment_masters",x_inform_comment_masters.arguments);}
function x_save_pd(){sajax_do_call("save_pd",x_save_pd.arguments);}
function x_get_email(){sajax_do_call("get_email",x_get_email.arguments);}
function x_get_kgs(){sajax_do_call("get_kgs",x_get_kgs.arguments);}
function PHP_Serializer(){if(String(Object).indexOf('(')!=16)
this.__cut=9;else
this.__cut=10;}
function PHP_Serializer__String(__s){return('s:'+__s.length+':"'+__s+'";');}
function PHP_UnSerializer__String(){var sls=this.__s.substr(2,(this.__s.indexOf(':',2)-2));var sli=parseInt(sls);sls=sls.length+4;var tmp=this.__s.substr(sls,sli);this.reduce((sli+sls+2));return tmp;}
function PHP_Serializer__Boolean(__s){return('b:'+(__s==false?'0':'1')+';');}
function PHP_UnSerializer__Boolean(){var tmp=(this.__s.substr(2,1)=='1'?true:false);this.reduce(4);return tmp;}
function PHP_Serializer__Number(__s){__s=String(__s);return((__s.indexOf('.')==-1)?'i:'+__s+';':'d:'+__s+';');}
function PHP_UnSerializer__Number(){var sli=this.__s.indexOf(';',1)-2;var tmp=Number(this.__s.substr(2,sli));this.reduce((sli+3));return tmp;}
function PHP_Serializer__Function(){return'';}
function PHP_Serializer__Undefined(){return'N;';}
function PHP_UnSerializer__Undefined(){this.reduce(2);return null;}
function PHP_Serializer__Common_ArrayObject(__s){var n;var a=0;var ser='';for(var b in __s){n=(__s[b]==null);if(n||(__s[b].constructor!=Function&&b!='__class')){ser+=(!isNaN(b))?this.__number(b):this.__string(b);ser+=n?this.__undefined():this[__s[b].constructor](__s[b]);++a;}}
return[a,ser];}
function PHP_UnSerializer__Common_ArrayObject(tmp){var l;var key;var a=this.__s.indexOf(':',2);var k=parseInt(this.__s.substr(2,(a-2)));this.reduce((a+2));if(k!=0){do{key=this[this.__s.substr(0,1)]();l=this.__s.substr(0,1);tmp[key]=this[l]();}while(--k);}
return tmp;}
function PHP_Serializer__Object(__s){var o=String(__s.constructor);var oname=o.substr(this.__cut,o.indexOf('(')-this.__cut);var ser=this.__common_array_object(__s);return('O:'+oname.length+':"'+oname+'":'+ser[0]+':{'+ser[1]+'}');}
function PHP_UnSerializer__Object(){var tmp='s'+this.__s.substr(1,(this.__s.indexOf(':',4)-1))+';';var a=tmp.substr(2,(tmp.indexOf(':',2)-2));this.reduce(tmp.length-2);var o=tmp.substr((a.length+4),parseInt(a));if(eval("typeof("+o+") == 'undefined'"))
eval('function '+o+'(){}');tmp='tmp = this.__common(new '+o+'());';eval(tmp);this.reduce(1);return tmp;}
function PHP_Serializer__Array(__s){var ser=this.__common_array_object(__s);return('a:'+ser[0]+':{'+ser[1]+'}');}
function PHP_UnSerializer__Array(){var tmp=this.__common(new Array());this.reduce(1);return tmp;}
function PHP_Serializer__serialize(what){if(what==null)
var ser=this.__undefined();else if(!this[what.constructor])
var ser=this[Object](what);else
var ser=this[what.constructor](what);return ser;}
function PHP_UnSerializer__Reducer(l){this.__s=this.__s.substr(l,(this.__s.length-l));}
function PHP_UnSerializer__unserialize(what){this.__s=what;delete what;return this[this.__s.substr(0,1)]();}
PHP_Serializer.prototype[Boolean]=PHP_Serializer__Boolean;PHP_Serializer.prototype[Number]=PHP_Serializer.prototype.__number=PHP_Serializer__Number;PHP_Serializer.prototype[String]=PHP_Serializer.prototype.__string=PHP_Serializer__String;PHP_Serializer.prototype[Function]=PHP_Serializer__Function;PHP_Serializer.prototype[Date]=PHP_Serializer.prototype[Error]=PHP_Serializer.prototype[Object]=PHP_Serializer__Object;PHP_Serializer.prototype[Array]=PHP_Serializer__Array;PHP_Serializer.prototype.__common_array_object=PHP_Serializer__Common_ArrayObject;PHP_Serializer.prototype.__undefined=PHP_Serializer__Undefined;PHP_Serializer.prototype.serialize=PHP_Serializer__serialize;PHP_Serializer.prototype.reduce=PHP_UnSerializer__Reducer;PHP_Serializer.prototype.s=PHP_UnSerializer__String;PHP_Serializer.prototype.b=PHP_UnSerializer__Boolean;PHP_Serializer.prototype.i=PHP_Serializer.prototype.d=PHP_UnSerializer__Number;PHP_Serializer.prototype.N=PHP_UnSerializer__Undefined;PHP_Serializer.prototype.__common=PHP_UnSerializer__Common_ArrayObject;PHP_Serializer.prototype.O=PHP_UnSerializer__Object;PHP_Serializer.prototype.a=PHP_UnSerializer__Array;PHP_Serializer.prototype.unserialize=PHP_UnSerializer__unserialize;function get_element(element_id){if(document.getElementById){return document.getElementById(element_id);}
else if(document.all){return document.all[element_id];}
else if(document.layers){return document.layers[element_id];}
else{return false;}}
function innerHTML(element_id,content,do_not_alert){if(get_element(element_id)){get_element(element_id).innerHTML=content
return true;}
else{if(!do_not_alert){alert("Can't find element id "+element_id+" to write content: "+content)}
return false;}}
function ADDinnerHTML(element_id,content){if(get_element(element_id)){get_element(element_id).innerHTML+=content;return true;}
else{alert("Can't find element id "+element_id+" to write content: "+content)
return false;}}
function ADDRinnerHTML(element_id,content){if(get_element(element_id)){get_element(element_id).innerHTML=content+get_element(element_id).innerHTML;return true;}
else{alert("Can't find element id "+element_id+" to write content: "+content)
return false;}}
function hide_reveal(hide,reveal){var targetElement;for(var i=0;i<hide.length;i++){if(targetElement=get_element(hide[i])){targetElement.style.display="none";}}
for(var i=0;i<reveal.length;i++){if(targetElement=get_element(reveal[i])){targetElement.style.display="";}}}
function textCounter(field,count_inner,maxlimit){var r=field.value.length;if(maxlimit){if(field.value.length>maxlimit){field.value=field.value.substring(0,maxlimit);}
r=maxlimit-field.value.length;}
if(get_element(count_inner)){innerHTML(count_inner,r);}}
function trim(inputString){if(typeof inputString!="string"){return inputString;}
var retValue=inputString;var ch=retValue.substring(0,1);while(ch==" "||ch.charCodeAt(0)==10){retValue=retValue.substring(1,retValue.length);ch=retValue.substring(0,1);}
ch=retValue.substring(retValue.length-1,retValue.length);while(ch==" "||ch.charCodeAt(0)==10){retValue=retValue.substring(0,retValue.length-1);ch=retValue.substring(retValue.length-1,retValue.length);}
while(retValue.indexOf("  ")!=-1){retValue=retValue.substring(0,retValue.indexOf("  "))+retValue.substring(retValue.indexOf("  ")+1,retValue.length);}
return retValue;}
function set_select_box_value(select_box,what){for(var i=0;i<select_box.options.length;i++){select_box.options[i].selected=(select_box.options[i].value==what)?true:false;}}
function validateTime(field){var keycode;if(window.event)
keycode=window.event.keyCode;else if(e)
keycode=e.which;else
alert("no event")
if(keycode==8){if(field.value.length==2){field.value=field.value.substring(0,1);}}
var valid="0123456789:"
var temp;for(var i=0;i<field.value.length;i++){temp=""+field.value.substring(i,i+1);if(valid.indexOf(temp)=="-1"){field.value=field.value.substring(0,(field.value.length)-1);}}
if(field.value.length==1){if(isNaN(field.value)){field.value="";}}
if(field.value.length==2){if(isNaN(field.value)){field.value=field.value.substring(0,(field.value.length)-1);}}
if(field.value.length==1){if(field.value>2){field.value="0"+field.value}}
if(field.value.length==2){field.value=field.value+":"
if(field.value.substring(0,2)>23){field.value="";}}
if(field.value.length==5){if(field.value.substring(3,5)>60){field.value=field.value.substring(0,3);}}
if(field.value.length>5){field.value=field.value.substring(0,5);}
if(field.value.substring((field.value.length)-1,(field.value.length)+1)==":"){temp=""+field.value.substring(0,(field.value.length)-1);if(temp.indexOf(":")!="-1"){field.value=field.value.substring(0,(field.value.length)-1);}}}
function checkTime(that){var time_to_check=that.value;vlIsValid=/^([01]?[0-9]|[2][0-3])(:[0-5][0-9])?$/.test(time_to_check);if(!vlIsValid){alert("ERROR!\nTime MUST be between 00:00 and 23:59\n");that.focus();that.select();return false;}
return true;}
function string_gl(value){var el=value.match(/([αβγδεζηθικλμνξοπρσςτυφχψωάόέίήύώΐϊϋΰ])/ig);el=(el==null)?new Array():el;var ru=value.match(/([абвгдеёжзийклмнопрстуфхцчшщъыьэюя])/ig);ru=(ru==null)?new Array():ru;var en=value.match(/([a-z])/ig);en=(en==null)?new Array():en;return(el.length>ru.length&&el.length>en.length)?"el":((ru.length>el.length&&ru.length>en.length)?"ru":"en");}
function getElementPosition_old(elemID){var offsetTrail=get_element(elemID);var offsetLeft=0;var offsetTop=0;while(offsetTrail){offsetLeft+=offsetTrail.offsetLeft;offsetTop+=offsetTrail.offsetTop;offsetTrail=offsetTrail.offsetParent;}
if(navigator.userAgent.indexOf("Mac")!=-1&&typeof document.body.leftMargin!="undefined"){offsetLeft+=document.body.leftMargin;offsetTop+=document.body.topMargin;}
return{left:offsetLeft,top:offsetTop};}
function getElementPosition_xywh(elemID){var a=getElementPosition(elemID);return{x:a.left,y:a.top,w:a.width,h:a.height};}
function getElementPosition(elemID){var offsetTrail=get_element(elemID);if(offsetTrail!=false){var tmp=getElementPosition_new(offsetTrail)
return{left:tmp.x,top:tmp.y,width:tmp.width,height:tmp.height};}
else{return{left:0,top:0,width:0,height:0};}}
function getElementPosition_new(element){var result=new Object();result.x=0;result.y=0;result.width=0;result.height=0;if(element){if(element.offsetParent){result.x=element.offsetLeft;result.y=element.offsetTop;var parent=element.offsetParent;while(parent){result.x+=parent.offsetLeft;result.y+=parent.offsetTop;var parentTagName=parent.tagName.toLowerCase();if(parentTagName!="table"&&parentTagName!="body"&&parentTagName!="html"&&parentTagName!="div"&&parent.clientTop&&parent.clientLeft){result.x+=parent.clientLeft;result.y+=parent.clientTop;}
parent=parent.offsetParent;}}
else if(element.left&&element.top){result.x=element.left;result.y=element.top;}
else{if(element.x){result.x=element.x;}
if(element.y){result.y=element.y;}}
if(element.offsetWidth&&element.offsetHeight){result.width=element.offsetWidth;result.height=element.offsetHeight;}
else if(element.style&&element.style.pixelWidth&&element.style.pixelHeight){result.width=element.style.pixelWidth;result.height=element.style.pixelHeight;}}
return result;}
function hide(srcElementId){var srcElement;if(srcElement=get_element(srcElementId)){srcElement.style.display="none";}}
function show(srcElementId,left,top){var element_to_reveal;if(element_to_reveal=get_element(srcElementId)){if(left){element_to_reveal.style.left=left+"px";}
if(top){element_to_reveal.style.top=top+"px";}
element_to_reveal.style.display="";}}
function check_radio_box(radio_box,what){for(var i=0;i<radio_box.length;i++){if(radio_box[i].value==what){radio_box[i].checked=true;break;}}}
function new_content(id,text,color){var toret=new Array();toret["id"]=id;toret["text"]=text;toret["color"]=color;return toret;}
function fill_select_box(select_box,content,chosen,use_color,zero_length){var selected=false;if(typeof(select_box)=="undefined"){alert("Undefined select_box");return false;}
if(zero_length==0){select_box.options.length=0;for(var i in content){selected=(content[i]['id']==chosen)?true:false;var option=document.createElement("OPTION");option.value=content[i]['id'];option.text=content[i]['text'];option.selected=selected;select_box.options[select_box.options.length]=option;if(use_color&&content[i]['color']){select_box.options[(select_box.options.length-1)].style.backgroundColor='#DE4A4C';}
else{select_box.options[(select_box.options.length-1)].style.backgroundColor='';}}}
else{for(var i=0;i<select_box.options.length;i++){var n=parseInt(options[i].value);select_box.options[i].text=content[n]['text'];if(use_color&&(content[n]['color']>0)){select_box.options[i].style.backgroundColor='#DE4A4C';}
else{select_box.options[i].style.backgroundColor='';}}}
for(var i=0;i<select_box.options.length;i++){if(select_box.options[i].value==chosen){select_box.options[i].selected=true;break;}}}
function handle_status(status,mesg){if(trim(mesg)!=""&&status!=0){alert(status+": "+mesg);}}
function is_numeric(value){var filter=/^([0-9])+$/;return filter.test(value);}
function is_email(value){var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return filter.test(value);}
function is_tel(value){var filter=/^([0-9\+\.\(\)\[\]\-_\ ])+$/;return filter.test(value);}
function is_in_num_range(x,min,max){if(is_numeric(x)){x=parseInt(x);if(x>=min&&x<=max){return true;}}
return false;}
var alphabet=new Array();alphabet[0]=new RegExp("[αάa]","i");alphabet[1]=new RegExp("[βbv]","i");alphabet[2]=new RegExp("[γg]","i");alphabet[3]=new RegExp("[δd]","i");alphabet[4]=new RegExp("[εέe]","i");alphabet[5]=new RegExp("[ζz]","i");alphabet[6]=new RegExp("[ιίηήυύiy]","i");alphabet[7]=new RegExp("[θ]","i");alphabet[8]=new RegExp("[κk]","i");alphabet[9]=new RegExp("[λl]","i");alphabet[10]=new RegExp("[μm]","i");alphabet[11]=new RegExp("[νn]","i");alphabet[12]=new RegExp("[ξ]","i");alphabet[13]=new RegExp("[οόωώo]","i");alphabet[14]=new RegExp("[πp]","i");alphabet[15]=new RegExp("[ρr]","i");alphabet[16]=new RegExp("[σςs]","i");alphabet[17]=new RegExp("[τt]","i");alphabet[18]=new RegExp("[φf]","i");alphabet[19]=new RegExp("[χxh]","i");alphabet[20]=new RegExp("[ψ]","i");function make_pattern(text){var text1='';for(var i=0;i<text.length;i++){var in_alphabet=false;for(var j=0;j<alphabet.length;j++){if(alphabet[j].exec(text.substring(i,i+1))){text1+=alphabet[j].source;in_alphabet=true;break;}}
if(!in_alphabet){text1+=text.substring(i,i+1);}}
return text1;}
function search_in_select_box(text,select_box){var innertext='';if(text.length>0){text='^'+make_pattern(text);re=new RegExp(text,'i');for(var i=0;i<select_box.options.length;i++){if(re.exec(select_box.options[i].text)){select_box.options[i].selected=true;break;}}}}
function translate_el_en(text){var expressions={'αυ([θκξπσςτφχψ]|\\s|$)':'af$1','Αυ([θκξπσςτφχψ]|\\s|$)':'Af$1','αυ':'av','Αυ':'Av','ου':'ou','Ου':'Ou','ευ([θκξπσςτφχψ]|\\s|$)':'ef$1','Ευ([θκξπσςτφχψ]|\\s|$)':'Ef$1','ευ':'ev','Ευ':'Ev','(^|\\s)μπ':'$1b','(^|\\s)Μπ':'$1B','μπ(\\s|$)':'b$1','γγ':'ng','Γγ':'Ng','ηυ([θκξπσςτφχψ]|\\s|$)':'if$1','Ηυ([θκξπσςτφχψ]|\\s|$)':'If$1','ηυ':'iy','Ηυ':'Iy','θ':'th','Θ':'Th','χ':'ch','Χ':'Ch','ψ':'ps','Ψ':'Ps'}
var GR='ΑΆΒΓΔΕΈΖΗΉΘΙΊΪΚΛΜΝΞΟΌΠΡΣΤΥΫΦΧΨΩΏαάβγδεέζηήθιίϊΐκλμνξοόπρσςτυύϋΰφχψωώ';var ENG='AAVGDEEZII.IIIKLMNXOOPRSTYYF..OOaavgdeezii.iiiiklmnxooprsstyyyyf..oo';for(var i=0;i<GR.length;i++){if(!expressions[GR.charAt(i)]){expressions[GR.charAt(i)]=ENG.charAt(i)}}
for(var expression in expressions){text=text.replace(new RegExp(expression,'g'),expressions[expression])}
return text;}
function strip_html(text){text=text.replace(/<script[^>]*?>.*?<\/script>/gi,"");text=text.replace(/<style[^>]*?>.*?<\/style>/gi,"");text=text.replace(/<[\/\!]*?[^<>]*?>/gi,"");text=text.replace(/([\r\n])[\s]+/gi," ");text=text.replace(/&(quot|#34);/gi,"\"");text=text.replace(/&(amp|#38);/gi,"&");text=text.replace(/&(lt|#60);/gi,"<");text=text.replace(/&(gt|#62);/gi,">");text=text.replace(/&(nbsp|#160);/gi," ");text=text.replace(/&#(\d+);/gi,"");return text;}
function make_http_link(text){text=text.replace(/(http:\/\/[a-z0-9._=&?:\-\/]*)/gi,"<a href=\"$1\" target=\"_blank\">link</a>");return text;}
function safe_text(text){var regex=/[^0-9a-zA-ZΑΆΒΓΔΕΈΖΗΉΘΙΊΪΚΛΜΝΞΟΌΠΡΣΤΥΫΦΧΨΩΏαάβγδεέζηήθιίϊΐκλμνξοόπρσςτυύϋΰφχψωώ@\[\]{-}'\" \-_\/,.;:=\n!@#$^&*()|<>\?\+%«»]/g;return text.replace(regex,"");}
function esc(text){return text;}
function make_name(name){var regex=/[.\[\]]+/g;return name.replace(regex,"_");}
function nl2br(text){var regex=/[\n\r]/g;return text.replace(regex,"<br />");}
var e=window.encodeURIComponent?encodeURIComponent:escape;var d=window.decodeURIComponent?decodeURIComponent:unescape;var my_objects=new Array();function mouseCoords(ev){if(ev.pageX||ev.pageY){return{x:ev.pageX,y:ev.pageY};}
return{x:ev.clientX+document.body.scrollLeft-document.body.clientLeft,y:ev.clientY+document.body.scrollTop-document.body.clientTop};}
document.onmousemove=mouseMove;var popupWindowOldEventListener1=document.onmouseup;if(window.popupWindowOldEventListener1!=null){document.onmouseup=function(e){popupWindowOldEventListener1(e);mouseUp(e);}}
else{document.onmouseup=mouseUp;}
var dragObject=null;var mouseOffset=null;function getMouseOffset(target,ev){ev=ev||window.event;var docPos=getPosition(target);var mousePos=mouseCoords(ev);return{x:mousePos.x-docPos.x,y:mousePos.y-docPos.y};}
function getPosition(e){var left=0;var top=0;while(e.offsetParent){left+=e.offsetLeft;top+=e.offsetTop;e=e.offsetParent;}
left+=e.offsetLeft;top+=e.offsetTop;return{x:left,y:top};}
function mouseMove(ev){if(dragObject){ev=ev||window.event;var mousePos=mouseCoords(ev);dragObject.style.position='absolute';dragObject.style.top=mousePos.y-mouseOffset.y;dragObject.style.left=mousePos.x-mouseOffset.x;if(dragObject&&dragObject.otec){dragObject.otec.mouse_move(mousePos,mouseOffset);}
return false;}}
function mouseUp(ev){if(dragObject&&dragObject.otec){ev=ev||window.event;var mousePos=mouseCoords(ev);dragObject.otec.mouse_release(mousePos,mouseOffset);}
dragObject=null;mouseOffset=null;}
function makeDraggable(item,parent){if(!item)return;if(typeof(parent)=="object"){item.otec=parent;}
item.onmousedown=function(ev){dragObject=this;if(typeof(this.otec)=="object"){dragObject.otec=this.otec;dragObject.otec.original_position=getPosition(this);}
mouseOffset=getMouseOffset(this,ev);return false;}
item.onmouseup=mouseUp;}
function makeDraggableParent(item,parent){if(!item)return;if(typeof(parent)=="object"){item.otec=parent;}
item.onmousedown=function(ev){if(typeof(this.otec)=="object"){dragObject=this.otec;}
else{dragObject=this;}
mouseOffset=getMouseOffset(this,ev);return false;}
item.onmouseup=mouseUp;}
function getWindowSize(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}
return{x:myWidth,y:myHeight};}
function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return{x:scrOfX,y:scrOfY};}
function Info(name){if(!this.listenerAttached){this.listenerAttached=true;my_objects[my_objects.length]=this;}
this.name=name;this.inner=make_name(this.name)+"_inner";this.show=info_show;this.draw=info_draw;this.hide=info_hide;}
function info_show(that_id,tekst){if(innerHTML(this.inner,this.draw(tekst))){var p=getElementPosition(that_id);var b=getWindowSize();var o=getScrollXY();var left=p.left+p.width-5;left=((b.x-(left+220))>10)?((left<0)?1:left):b.x-220;var top=p.top-15;show(this.inner,left,top);}}
function info_draw(tekst){var t="";t+="<table class='' cellspacing='0' cellpadding='2' border='0'><tr><td colspan='3' class='bg_white opac60'></td></tr><tr><td class='bg_white opac60'></td><td style='padding: 0px'><table class='' cellspacing='0' cellpadding='1' border='0'><tr><td colspan='3' class='bg_white opac80'></td></tr><tr><td class='bg_white opac80'></td><td class='bg_white noopac border_grey'>"+tekst+"</td><td class='bg_white opac80'></td></tr><tr><td colspan='3' class='bg_white opac80'></td></tr></table></td><td class='bg_white opac60'></td></tr><tr><td colspan='3' class='bg_white opac60'></td></tr></table>";return t;}
function info_hide(e){var is_clicked_inside=false;var p=getElementPosition(this.inner);var c=mouseCoords(e);var offset=10
is_clicked_inside=((c.x>p.left-offset)&&(c.x<p.left+p.width+offset)&&(c.y>p.top-offset)&&(c.y<p.top+p.height+offset))?true:false;if(!is_clicked_inside){hide(this.inner)}}
function draw_analized_object(obj){var toret="";toret+="<table border='1'>"
if(typeof(obj)=="object"){for(var property in obj){toret+="<tr>";toret+="<td class='bold'>"+property+"</td>";toret+="<td class='italic'>"+typeof(obj[property])+"</td>";if(typeof(obj[property])=="object"){toret+="<td class=''>"+draw_analized_object(obj[property])+"</td>";}
else if(typeof(obj[property])!="function"){toret+="<td class='blue'>"+(obj[property])+"</td>";}
else{toret+="<td class=''>a&nbsp;</td>";}
toret+="</tr>";}}
else{toret+="<tr><td>Not object</td></tr>";}
toret+="</table>";return toret;}
function insertAt(index,value){var part1=this.slice(0,index);var part2=this.slice(index);part1.push(value);return(part1.concat(part2));}
function removeAt(index){var part1=this.slice(0,index);var part2=this.slice(index);part1.pop();return(part1.concat(part2));}
function _highlightClose(that){if(that.src.indexOf('over')>=0){that.src='images/close.gif';}else{that.src='images/close_over.gif';}}
function _highlightAddNewDown(that){if(that.src.indexOf('over')>=0){that.src='images/addnewdown_a.gif';}else{that.src='images/addnewdown_b.gif';}}
function _highlightAddNewRight(that){if(that.src.indexOf('over')>=0){that.src='images/addnewright_b.gif';}else{that.src='images/addnewright_a.gif';}}
function main_draw_paging(){var table="";if(typeof(this.count)!="undefined"&&typeof(this.limit1)!="undefined"&&typeof(this.limit2)!="undefined"&&this.count>0){table+="  <TABLE border='0' cellspacing='2' cellpadding='2'>";table+="  <tr> ";if(this.limit1<=0){this.limit1=0;table+="  <td class='border darkgrey bold bg_veryverylightgrey'>«</td>";}
else{table+="  <td class='border blue bold link' onclick='"+this.name+".limit1-="+this.name+".limit2;"+this.name+".get()'>«</td>";}
table+="  <td class=''>("+(this.limit1+1)+"-"+(this.limit1+this.limit2)+")/"+this.count+"</td>";if((this.limit1+this.limit2)>=this.count){table+="  <td class='border darkgrey bold bg_veryverylightgrey'>»</td>";}
else{table+="  <td class='border blue bold link' onclick='"+this.name+".limit1+="+this.name+".limit2;"+this.name+".get()'>»</td>";}
table+="  </tr>";table+="  </TABLE>";}
return table;}
var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');var MONTH_NAMES=new Array('Ιανουαρίου','Φεβρουαρίου','Μαρτίου','Απριλίου','May','Ιουνίου','Ιουλίου','Αυγούστου','Σεπτεμβρίου','Οκτωβρίου','Νοεμβρίου','Δεκεμβρίου','Ιαν','Φεβ','Μαρ','Απρ','May','Ιουν','Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ');var DAY_NAMES=new Array('Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο','Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ');function LZ(x){return(x<0||x>9?"":"0")+x}
function formatDate(date,format){format=format+"";var result="";var i_format=0;var c="";var token="";var y=date.getYear()+"";var M=date.getMonth()+1;var d=date.getDate();var E=date.getDay();var H=date.getHours();var m=date.getMinutes();var s=date.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;var value=new Object();if(y.length<4){y=""+(y-0+1900);}
value["y"]=""+y;value["yyyy"]=y;value["yy"]=y.substring(2,4);value["M"]=M;value["MM"]=LZ(M);value["MMM"]=MONTH_NAMES[M-1];value["NNN"]=MONTH_NAMES[M+11];value["d"]=d;value["dd"]=LZ(d);value["E"]=DAY_NAMES[E+7];value["EE"]=DAY_NAMES[E];value["H"]=H;value["HH"]=LZ(H);if(H==0){value["h"]=12;}
else if(H>12){value["h"]=H-12;}
else{value["h"]=H;}
value["hh"]=LZ(value["h"]);if(H>11){value["K"]=H-12;}else{value["K"]=H;}
value["k"]=H+1;value["KK"]=LZ(value["K"]);value["kk"]=LZ(value["k"]);if(H>11){value["a"]="PM";}
else{value["a"]="AM";}
value["m"]=m;value["mm"]=LZ(m);value["s"]=s;value["ss"]=LZ(s);while(i_format<format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c)&&(i_format<format.length)){token+=format.charAt(i_format++);}
if(value[token]!=null){result=result+value[token];}
else{result=result+token;}}
return result;}
function _isInteger(val){var digits="1234567890";for(var i=0;i<val.length;i++){if(digits.indexOf(val.charAt(i))==-1){return false;}}
return true;}
function _getInt(str,i,minlength,maxlength){for(var x=maxlength;x>=minlength;x--){var token=str.substring(i,i+x);if(token.length<minlength){return null;}
if(_isInteger(token)){return token;}}
return null;}
function getDateFromFormat(val,format){val=val+"";format=format+"";var i_val=0;var i_format=0;var c="";var token="";var token2="";var x,y;var now=new Date();var year=now.getYear();var month=now.getMonth()+1;var date=1;var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var ampm="";while(i_format<format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c)&&(i_format<format.length)){token+=format.charAt(i_format++);}
if(token=="yyyy"||token=="yy"||token=="y"){if(token=="yyyy"){x=4;y=4;}
if(token=="yy"){x=2;y=2;}
if(token=="y"){x=2;y=4;}
year=_getInt(val,i_val,x,y);if(year==null){return 0;}
i_val+=year.length;if(year.length==2){if(year>70){year=1900+(year-0);}
else{year=2000+(year-0);}}}
else if(token=="MMM"||token=="NNN"){month=0;for(var i=0;i<MONTH_NAMES.length;i++){var month_name=MONTH_NAMES[i];if(val.substring(i_val,i_val+month_name.length).toLowerCase()==month_name.toLowerCase()){if(token=="MMM"||(token=="NNN"&&i>11)){month=i+1;if(month>12){month-=12;}
i_val+=month_name.length;break;}}}
if((month<1)||(month>12)){return 0;}}
else if(token=="EE"||token=="E"){for(var i=0;i<DAY_NAMES.length;i++){var day_name=DAY_NAMES[i];if(val.substring(i_val,i_val+day_name.length).toLowerCase()==day_name.toLowerCase()){i_val+=day_name.length;break;}}}
else if(token=="MM"||token=="M"){month=_getInt(val,i_val,token.length,2);if(month==null||(month<1)||(month>12)){return 0;}
i_val+=month.length;}
else if(token=="dd"||token=="d"){date=_getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return 0;}
i_val+=date.length;}
else if(token=="hh"||token=="h"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}
i_val+=hh.length;}
else if(token=="HH"||token=="H"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}
i_val+=hh.length;}
else if(token=="KK"||token=="K"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}
i_val+=hh.length;}
else if(token=="kk"||token=="k"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}
i_val+=hh.length;hh--;}
else if(token=="mm"||token=="m"){mm=_getInt(val,i_val,token.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}
i_val+=mm.length;}
else if(token=="ss"||token=="s"){ss=_getInt(val,i_val,token.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}
i_val+=ss.length;}
else if(token=="a"){if(val.substring(i_val,i_val+2).toLowerCase()=="am"){ampm="AM";}
else if(val.substring(i_val,i_val+2).toLowerCase()=="pm"){ampm="PM";}
else{return 0;}
i_val+=2;}
else{if(val.substring(i_val,i_val+token.length)!=token){return 0;}
else{i_val+=token.length;}}}
if(i_val!=val.length){return 0;}
if(month==2){if(((year%4==0)&&(year%100!=0))||(year%400==0)){if(date>29){return 0;}}
else{if(date>28){return 0;}}}
if((month==4)||(month==6)||(month==9)||(month==11)){if(date>30){return 0;}}
if(hh<12&&ampm=="PM"){hh=hh-0+12;}
else if(hh>11&&ampm=="AM"){hh-=12;}
var newdate=new Date(year,month-1,date,hh,mm,ss);return newdate.getTime();}
function is_enter(e){var keycode;if(window.event)
keycode=window.event.keyCode;else if(e)
keycode=e.which;else
return false;if(keycode==13){return true;}
return false;}
function submitenter(myfield,e){if(is_enter(e)){myfield.form.submit();return false;}
else
return true;}
function count(ar){var r=-1;if(ar&&typeof(ar)=="object"){r=0;for(var i in ar){r++;}}
return r;}
function get_link(id,gl,name,type,limit1){var r=type+id+gl+((limit1)?limit1:"")+"_"+strip_html(translate_el_en(name)).replace(/[() -]+/g,"").toLowerCase()+".html";return r;}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function eraseCookie(name){createCookie(name,"",-1);}
var currentRTE;function RichText(name,parent,fileupload_inner){this.name=name;this.rte=make_name(name);this.parent=parent;this.fileupload_inner=fileupload_inner;this.isRichText=false;this.rng;this.html;this.isIE;this.isGecko;this.isSafari;this.isKonqueror;this.imagesPath;this.includesPath;this.cssFile;this.init=initRTE;this.draw=writeRichText;this.enableDesignMode=RTE_enableDesignMode;this.update=updateRTE;this.Command=rteCommand;this.toggleHTMLSrc=RTE_toggleHTMLSrc;this.dlgColorPalette=RTE_dlgColorPalette;this.dlgInsertTable=RTE_dlgInsertTable;this.insertLink=RTE_insertLink;this.addImage=RTE_addImage;this.hide_Image=RTE_hide_Image;this.selectFont=RTE_selectFont;this.setRange=RTE_setRange;this.addObject=RTE_addObject;this.hide_Object=RTE_hide_Image;}
function initRTE(imgPath,incPath,css){currentRTE=this;var ua=navigator.userAgent.toLowerCase();this.isIE=((ua.indexOf("msie")!=-1)&&(ua.indexOf("opera")==-1)&&(ua.indexOf("webtv")==-1));this.isGecko=(ua.indexOf("gecko")!=-1);this.isSafari=(ua.indexOf("safari")!=-1);this.isKonqueror=(ua.indexOf("konqueror")!=-1);if(document.getElementById&&document.designMode&&!this.isSafari&&!this.isKonqueror){this.isRichText=true;}
if(this.isIE){document.onmouseover=raiseButton;document.onmouseout=normalButton;document.onmousedown=lowerButton;document.onmouseup=raiseButton;}
this.imagesPath=imgPath;this.includesPath=incPath;this.cssFile=css;};function writeRichText(html,width,height,buttons,readOnly){this.html=html;this.width=width;this.height=height;this.buttons=buttons;this.readOnly=readOnly;var toret="";if(this.isRichText){if(this.readOnly)buttons=false;var w=25;var h=24;if(this.width<(w*21+21*2+7*5)){w=15;h=14;if(this.width>(w*21+21*2+7*5)){w=Math.floor((this.width-21*2-7*5-20)/21);h=w-1;}}
if(this.isIE){if(this.buttons&&(this.width<(15*21+21*2+7*5)))this.width=15*21+21*2+7*5;var tablewidth=this.width;}else{if(this.buttons&&(this.width<(15*21+21*2+7*5)))this.width=15*21+21*2+7*5;var tablewidth=this.width+4;}
toret+='<div class="rteDiv">';if(this.buttons==true){toret+='<table class="rteBack" cellpadding=0 cellspacing=0 id="Buttons1_'+this.rte+'" width="'+tablewidth+'">';toret+=' <tr>';toret+='  <td>';toret+='   <select id="formatblock_'+this.rte+'" onchange="'+this.name+'.selectFont(this.id);">';toret+="    <option value=\"\">[Style]<\/opt"+"ion>";toret+="    <option value=\"<p>\">Paragraph &lt;p&gt;<\/opt"+"ion>";toret+="    <option value=\"<h1>\">Heading 1 &lt;h1&gt;<\/opt"+"ion>";toret+="    <option value=\"<h2>\">Heading 2 &lt;h2&gt;<\/opt"+"ion>";toret+="    <option value=\"<h3>\">Heading 3 &lt;h3&gt;<\/opt"+"ion>";toret+="    <option value=\"<h4>\">Heading 4 &lt;h4&gt;<\/opt"+"ion>";toret+="    <option value=\"<h5>\">Heading 5 &lt;h5&gt;<\/opt"+"ion>";toret+="    <option value=\"<h6>\">Heading 6 &lt;h6&gt;<\/opt"+"ion>";toret+="    <option value=\"<address>\">Address &lt;ADDR&gt;<\/opt"+"ion>";toret+="    <option value=\"<pre>\">Formatted &lt;pre&gt;<\/opt"+"ion>";toret+='   </sel"+"ect>';toret+='  </td>';toret+='  <td>';toret+='   <select id="fontname_'+this.rte+'" onchange="'+this.name+'.selectFont(this.id)">';toret+='    <option value="Font" selected>[Font]</option>';toret+='    <option value="Arial, Helvetica, sans-serif" style="font-family: Arial, Helvetica, sans-serif">Arial</option>';toret+='    <option value="Courier New, Courier, mono" style="font-family: Courier New, Courier, mono">Courier New</option>';toret+='    <option value="Times New Roman, Times, serif" style="font-family: Times New Roman, Times, serif">Times New Roman</option>';toret+='    <option value="Verdana, Arial, Helvetica, sans-serif" style="font-family: Verdana, Arial, Helvetica, sans-serif">Verdana</option>';toret+='    <option value="Trebuchet MS,Verdana,Sans-Serif" style="font-family: Trebuchet,Verdana,Sans-Serif">Trebuchet</option>';toret+='   </select>';toret+='  </td>';toret+='  <td>';toret+='   <select unselectable="on" id="fontsize_'+this.rte+'" onchange="'+this.name+'.selectFont(this.id);">';toret+='    <option value="Size">[Size]</option>';toret+='    <option value="1">1</opt"+"ion>';toret+='    <option value="2">2</opt"+"ion>';toret+='    <option value="3">3</opt"+"ion>';toret+='    <option value="4">4</opt"+"ion>';toret+='    <option value="5">5</opt"+"ion>';toret+='    <option value="6">6</opt"+"ion>';toret+='    <option value="7">7</opt"+"ion>';toret+='   </select>';toret+='  </td>';toret+='  <td width="100%">';toret+='  </td>';toret+=' </tr>';toret+='</table>';toret+='<table class="rteBack" cellpadding="0" cellspacing="0" id="Buttons2_'+this.rte+'" width="'+tablewidth+'">';toret+=' <tr>';toret+='  <td><img id="bold" class="rteImage" src="'+this.imagesPath+'bold.gif" width="'+w+'" height="'+h+'" alt="Bold" title="Bold" onClick="'+this.name+'.Command( \'bold\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'italic.gif" width="'+w+'" height="'+h+'" alt="Italic" title="Italic" onClick="'+this.name+'.Command( \'italic\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'underline.gif" width="'+w+'" height="'+h+'" alt="Underline" title="Underline" onClick="'+this.name+'.Command( \'underline\', \'\')"></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'left_just.gif" width="'+w+'" height="'+h+'" alt="Align Left" title="Align Left" onClick="'+this.name+'.Command( \'justifyleft\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'centre.gif" width="'+w+'" height="'+h+'" alt="Center" title="Center" onClick="'+this.name+'.Command( \'justifycenter\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'right_just.gif" width="'+w+'" height="'+h+'" alt="Align Right" title="Align Right" onClick="'+this.name+'.Command( \'justifyright\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'justifyfull.gif" width="'+w+'" height="'+h+'" alt="Justify Full" title="Justify Full" onclick="'+this.name+'.Command( \'justifyfull\', \'\')"></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'hr.gif" width="'+w+'" height="'+h+'" alt="Horizontal Rule" title="Horizontal Rule" onClick="'+this.name+'.Command( \'inserthorizontalrule\', \'\')"></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'numbered_list.gif" width="'+w+'" height="'+h+'" alt="Ordered List" title="Ordered List" onClick="'+this.name+'.Command( \'insertorderedlist\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'list.gif" width="'+w+'" height="'+h+'" alt="Unordered List" title="Unordered List" onClick="'+this.name+'.Command( \'insertunorderedlist\', \'\')"></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'outdent.gif" width="'+w+'" height="'+h+'" alt="Outdent" title="Outdent" onClick="'+this.name+'.Command( \'outdent\', \'\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'indent.gif" width="'+w+'" height="'+h+'" alt="Indent" title="Indent" onClick="'+this.name+'.Command( \'indent\', \'\')"></td>';toret+='  <td><div id="forecolor_'+this.rte+'"><img class="rteImage" src="'+this.imagesPath+'textcolor.gif" width="'+w+'" height="'+h+'" alt="Text Color" title="Text Color" onClick="'+this.name+'.dlgColorPalette(\'forecolor\', \'\')"></div></td>';toret+='  <td><div id="hilitecolor_'+this.rte+'"><img class="rteImage" src="'+this.imagesPath+'bgcolor.gif" width="'+w+'" height="'+h+'" alt="Background Color" title="Background Color" onClick="'+this.name+'.dlgColorPalette(\'hilitecolor\', \'\')"></div></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'hyperlink.gif" width="'+w+'" height="'+h+'" alt="Insert Link" title="Insert Link" onClick="'+this.name+'.insertLink()"></td>';toret+='  <td><div id="addimage_'+this.rte+'"><img class="rteImage" src="'+this.imagesPath+'image.gif" width="'+w+'" height="'+h+'" alt="Add Image" title="Add Image" onClick="'+this.name+'.addImage(\'show\');"></div></td>';toret+='  <td><div id="addobject_'+this.rte+'"><img class="rteImage" src="'+this.imagesPath+'flash.gif" width="'+w+'" height="'+h+'" alt="Add Object" title="Add Object" onClick="'+this.name+'.addObject(\'show\');"></div></td>';toret+='  <td><div id="table_'+this.rte+'"><img class="rteImage" src="'+this.imagesPath+'insert_table.gif" width="'+w+'" height="'+h+'" alt="Insert Table" title="Insert Table" onClick="'+this.name+'.dlgInsertTable(\'table\', \'\')"></div></td>';if(this.isIE){toret+='  <td><img class="rteImage" src="'+this.imagesPath+'spellcheck.gif" width="'+w+'" height="'+h+'" alt="Spell Check" title="Spell Check" onClick="checkspell()"></td>';}
toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'undo.gif" width="'+w+'" height="'+h+'" alt="Undo" title="Undo" onClick="'+this.name+'.Command( \'undo\')"></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'redo.gif" width="'+w+'" height="'+h+'" alt="Redo" title="Redo" onClick="'+this.name+'.Command( \'redo\')"></td>';toret+='  <td><img class="rteVertSep" src="'+this.imagesPath+'blackdot.gif" width="1" height="20" border="0" alt=""></td>';toret+='  <td><img class="rteImage" src="'+this.imagesPath+'remove.gif" width="'+w+'" height="'+h+'" alt="Remove Format" title="RemoveFormat" onClick="'+this.name+'.Command( \'removeformat\')"></td>';toret+='  <td width="100%"></td>';toret+=' </tr>';toret+='</table>';}
toret+='<iframe id="'+this.rte+'" name="'+this.rte+'" width="'+this.width+'px" height="'+this.height+'px" src="'+this.includesPath+'blank.htm" class="border"></iframe>';if(!this.readOnly)toret+='<br /><input type="checkbox" id="chkSrc'+this.rte+'" onclick="'+this.name+'.toggleHTMLSrc();" />&nbsp;View Source';toret+='<iframe width="154" height="104" id="cp'+this.rte+'" src="'+this.includesPath+'palette.htm" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; position: absolute;"></iframe>';toret+='<input type="hidden" id="hdn'+this.rte+'" name="'+this.rte+'" value="">';toret+='</div>';}else{if(!this.readOnly){toret+='<textarea name="'+this.rte+'" id="'+this.rte+'" style="width: '+this.width+'px; height: '+this.height+'px;" translate_letter(event,this)>'+this.html+'</textarea>';}else{toret+='<textarea name="'+this.rte+'" id="'+this.rte+'" style="width: '+this.width+'px; height: '+this.height+'px;" readonly>'+this.html+'</textarea>';}}
return toret;}
function RTE_enableDesignMode(){var frameHtml="<html id=\""+this.rte+"\">\n";frameHtml+="<head>\n";if(this.cssFile.length>0){frameHtml+="<link media=\"all\" type=\"text/css\" href=\""+this.cssFile+"\" rel=\"stylesheet\">\n";}else{frameHtml+="<style>\n";frameHtml+="body {\n";frameHtml+=" background: #FFFFFF;\n";frameHtml+=" margin: 0px;\n";frameHtml+=" padding: 0px;\n";frameHtml+="}\n";frameHtml+="</style>\n";}
frameHtml+="</head>\n";frameHtml+="<body>\n";frameHtml+=this.html+"\n";frameHtml+="</body>\n";frameHtml+="</html>";if(document.all){var oRTE=frames[this.rte].document;oRTE.open();oRTE.write(frameHtml);oRTE.close();if(!this.readOnly)oRTE.designMode="On";}else{try{if(!this.readOnly)document.getElementById(this.rte).contentDocument.designMode="on";try{var oRTE=document.getElementById(this.rte).contentWindow.document;oRTE.open();oRTE.write(frameHtml);oRTE.close();if(this.isGecko&&!this.readOnly){oRTE.addEventListener("keypress",kb_handler,true);}}catch(e){alert("Error preloading content.");}}catch(e){if(this.isGecko){setTimeout(this.name+".enableDesignMode();",10);}else{return false;}}}}
function updateRTE(){if(!this.isRichText)return;var oHdnMessage=document.getElementById('hdn'+this.rte);var oRTE=document.getElementById(this.rte);var readOnly=false;if(document.all){if(frames[this.rte].document.designMode!="On")readOnly=true;}else{if(document.getElementById(this.rte).contentDocument.designMode!="on")readOnly=true;}
if(this.isRichText&&!this.readOnly){if(document.getElementById("chkSrc"+this.rte).checked){document.getElementById("chkSrc"+this.rte).checked=false;this.toggleHTMLSrc();}
if(oHdnMessage.value==null)oHdnMessage.value="";if(document.all){oHdnMessage.value=frames[this.rte].document.body.innerHTML;}else{oHdnMessage.value=oRTE.contentWindow.document.body.innerHTML;}
if(stripHTML(oHdnMessage.value.replace("&nbsp;"," "))==""&&oHdnMessage.value.toLowerCase().search("<hr")==-1&&oHdnMessage.value.toLowerCase().search("<img")==-1&&oHdnMessage.value.toLowerCase().search("<object")==-1)oHdnMessage.value="";if(escape(oHdnMessage.value)=="%3Cbr%3E%0D%0A%0D%0A%0D%0A")oHdnMessage.value="";}
this.html=oHdnMessage.value;}
function rteCommand(command,option){var oRTE;if(document.all){oRTE=frames[this.rte];}else{oRTE=document.getElementById(this.rte).contentWindow;}
try{oRTE.focus();oRTE.document.execCommand(command,false,option);oRTE.focus();}catch(e){alert(e);setTimeout(this.name+".Command('"+command+"', '"+option+"');",10);}}
function RTE_toggleHTMLSrc(){var oRTE;if(document.all){oRTE=frames[this.rte].document;}else{oRTE=document.getElementById(this.rte).contentWindow.document;}
if(document.getElementById("chkSrc"+this.rte).checked){showHideElement("Buttons1_"+this.rte,"hide");showHideElement("Buttons2_"+this.rte,"hide");if(document.all){oRTE.body.innerText=oRTE.body.innerHTML;}else{var htmlSrc=oRTE.createTextNode(oRTE.body.innerHTML);oRTE.body.innerHTML="";oRTE.body.appendChild(htmlSrc);}}else{showHideElement("Buttons1_"+this.rte,"show");showHideElement("Buttons2_"+this.rte,"show");if(document.all){var output=escape(oRTE.body.innerText);output=output.replace("%3CP%3E%0D%0A%3CHR%3E","%3CHR%3E");output=output.replace("%3CHR%3E%0D%0A%3C/P%3E","%3CHR%3E");oRTE.body.innerHTML=unescape(output);}else{var htmlSrc=oRTE.body.ownerDocument.createRange();htmlSrc.selectNodeContents(oRTE.body);oRTE.body.innerHTML=htmlSrc.toString();}}}
function RTE_dlgColorPalette(command){this.setRange();var oDialog=document.getElementById('cp'+this.rte);var buttonElement=document.getElementById(command+'_'+this.rte);var iLeftPos=getOffsetLeft(buttonElement);var iTopPos=getOffsetTop(buttonElement)+(buttonElement.offsetHeight+4);oDialog.style.left=(iLeftPos)+"px";oDialog.style.top=(iTopPos)+"px";if((command==this.parent_command)){if(oDialog.style.visibility=="hidden"){showHideElement(oDialog,'show');}else{showHideElement(oDialog,'hide');}}
this.parent_command=command;currentRTE=this;}
function RTE_dlgInsertTable(command){this.setRange();this.parent_command=command;currentRTE=this;var windowOptions='history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=360,height=200';window.open(this.includesPath+'insert_table.htm','InsertTable',windowOptions);}
function RTE_insertLink(){var szURL=prompt("Enter a URL:","");try{this.Command("Unlink",null);this.Command("CreateLink",szURL);}catch(e){}}
function setColor(color){if(document.all){var sel=frames[currentRTE.rte].document.selection;if(currentRTE.parent_command=="hilitecolor")currentRTE.parent_command="backcolor";if(sel!=null){var newRng=sel.createRange();newRng=currentRTE.rng;newRng.select();}}
currentRTE.Command(currentRTE.parent_command,color);showHideElement('cp'+currentRTE.rte,"hide");}
function RTE_addImage(state,id,md_5){if(this.isRichText){currentRTE=this;}
this.maxW=(this.maxW)?this.maxW:"800";this.maxH=(this.maxH)?this.maxH:"600";this.HSpace=(this.HSpace)?this.HSpace:"10";this.VSpace=(this.VSpace)?this.VSpace:"10";switch(state){case'after_save_stand_alone':if(id!=null&&md_5!=null){this.id=id;this.md_5=md_5;if(this.after_save){this.after_save();}}
hide(this.fileupload_inner);break;case'after_save':if(id!=null&&md_5!=null){var html="";html+='<img src="image.php?id='+id+"&md_5="+md_5+'"';if(this.img_border!=""){html+=' border="'+this.img_border+'"';}
if(this.img_hspace!=""){html+=' hspace="'+this.img_hspace+'"';}
if(this.img_vspace!=""){html+=' vspace="'+this.img_vspace+'"';}
if(this.img_align!=""&&this.img_align!="Default"){html+=' align="'+this.img_align+'"';}
if(this.img_alt!=""){html+=' alt="'+this.img_alt+'"';html+=' title="'+this.img_alt+'"';}
html+=' />';insertHTML(html);}
hide(this.fileupload_inner);break;case'save':var sent_to_save_attachment=false;with(document.forms["forma_"+make_name(this.name)]){if(ei_id&&ei_id.value!=""){var tmp=ei_id.value.split("_");if(count(tmp)==2){id=tmp[0];md_5=tmp[1];if(this.isRichText){this.addImage('after_save',id,md_5);}
else{this.addImage('after_save_stand_alone',id,md_5);}
break;}}
if(document.forms["forma_"+make_name(this.name)][make_name(this.name)+"_attachment"].value!=""){method="POST";target=make_name(this.name)+"_process_upload_file";action="file_upload.php";input_file_name.value=make_name(this.name)+"_attachment";to_do_onload.value=(this.isRichText)?"window.parent."+this.name+".addImage('after_save',id,md_5);":"window.parent."+this.name+".addImage('after_save_stand_alone',id,md_5);";to_do_onerror.value="";sent_to_save_attachment=true;this.img_width=w.value;this.img_height=h.value;if(this.isRichText){this.img_border=border.value;this.img_hspace=hspace.value;this.img_vspace=vspace.value;this.img_align=align.value;}
this.img_alt=description.value;submit();}}
if(!sent_to_save_attachment){alert("no attachment");}
break;case'show':default:var toret="";toret+="<FORM name='forma_"+make_name(this.name)+"' method='POST' enctype='multipart/form-data'>";toret+="<INPUT type='hidden' name='MAX_FILE_SIZE' value='80000000'>";toret+="<INPUT type='hidden' name='input_file_name' value=''>";toret+="<INPUT type='hidden' name='to_do_onload' value=''>";toret+="<INPUT type='hidden' name='to_do_onerror' value=''>";toret+="<TABLE border='0' width='300' cellpadding='1' cellspacing='1' class='border bg_lightgrey'>";toret+="<tr><td class='center bold' colspan='2'>upload image</td></tr>";toret+="<tr><td width='125'>Image URL</td><td width='175'><INPUT type='file' name='"+make_name(this.name)+"_attachment' size='40' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";toret+="<tr><td>width </td><td><input name='w' type='text' id='w' size='3' maxlength='3' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;' value='"+this.maxW+"' "+((this.strict_dimentions)?"readonly":"")+"></td></tr>";toret+="<tr><td>height </td><td><input name='h' type='text' id='h' size='3' maxlength='3' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;' value='"+this.maxH+"' "+((this.strict_dimentions)?"readonly":"")+"></td></tr>";toret+="<tr><td>Image Description </td><td><input name='description' id='description' type='text' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";if(this.isRichText){toret+="<tr><td>Alignment </td><td><select id='align' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'><option ></option><option value='baseline'>Baseline</option><option value='top'>Top</option><option value='middle'>Middle</option><option value='bottom'>Bottom</option><option value='texttop'>TextTop</option><option value='absmiddle'>Absolute Middle</option><option value='absbottom'>Absolute Bottom</option><option value='left'>Left</option><option value='right'>Right</option></select></td></tr>";toret+="<tr><td>Border </td><td><input name='border' type='text' id='border' value='0' size='3' maxlength='3' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";toret+="<tr><td>HSpace </td><td><input name='hspace' type='text' id='hspace' size='3' maxlength='3' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;' value='"+this.HSpace+"'></td></tr>";toret+="<tr><td>VSpace </td><td><input name='vspace' type='text' id='vspace' size='3' maxlength='3' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;' value='"+this.VSpace+"'></td></tr>";}
if(this.to_show_direct_id_insert){toret+="<tr><td>Direct id</td><td><input type='text' name='ei_id' value='' size='40'></td></tr>";}
else{toret+="<input type='hidden' name='ei_id' value='' size='0'>";}
toret+="<tr><td align='center' colspan='2'><INPUT type='button' name='"+make_name(this.name)+"_save_ctl' value='Save' onclick=\""+this.name+".addImage('save');\" class='file' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'><INPUT type='button' name='"+make_name(this.name)+"_close_ctl' value='Close' onclick=\"hide("+this.name+".fileupload_inner);\" class='file' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";toret+="</TABLE>";toret+="</FORM>";toret+="<IFRAME name='"+make_name(this.name)+"_process_upload_file' frameborder='0' width='0' height='0'></IFRAME>";if(!this.listenerAttached){this.listenerAttached=true;my_objects[my_objects.length]=this;}
if(innerHTML(this.fileupload_inner,toret)){var p=getElementPosition("addimage_"+make_name(this.name));show(this.fileupload_inner,p.left,p.top+p.height);}
break;}}
function RTE_hide_Image(e){var is_clicked_inside=false;var p=getElementPosition(this.fileupload_inner);var c=mouseCoords(e);var offset=100;is_clicked_inside=((c.x>p.left-offset)&&(c.x<p.left+p.width+offset)&&(c.y>p.top-offset)&&(c.y<p.top+p.height+offset))?true:false;if(!is_clicked_inside){hide(this.fileupload_inner)}}
function RTE_addObject(state,filename){if(this.isRichText){currentRTE=this;}
this.maxW=(this.maxW)?this.maxW:"800";this.maxH=(this.maxH)?this.maxH:"600";switch(state){case'after_save_stand_alone':if(filename!=null){this.filename=filename;if(this.after_save){this.after_save();}}
hide(this.fileupload_inner);break;case'after_save':if(filename!=null){var html="";html+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" width="{wa}" height="{h'+this.obj_ratio+'}">';html+='<param value="transparent" name="wmode">';html+='<param value="High" name="Quality">';html+='<param value="-1" name="Loop">';html+='<param value="all" name="AllowNetworking">';html+='<param value="false" name="AllowFullScreen">';html+='<param value="uploaded/'+filename+'" name="Movie">';html+='<param value="uploaded/'+filename+'" name="Src">';html+=' <embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=" quality="high" loop="true" type="application/x-shockwave-flash" src="uploaded/'+filename+'" wmode="transparent" width="{wa}" height="{h'+this.obj_ratio+'}">';html+='</object>';insertHTML(html);}
hide(this.fileupload_inner);break;case'save':var sent_to_save_attachment=false;if(document.forms["forma_object_"+make_name(this.name)][make_name(this.name)+"_attachment"].value!=""){with(document.forms["forma_object_"+make_name(this.name)]){method="POST";target=make_name(this.name)+"_process_upload_file";action="file_upload.php";input_file_name.value=make_name(this.name)+"_attachment";to_do_onload.value=(this.isRichText)?"window.parent."+this.name+".addObject('after_save',filename);":"window.parent."+this.name+".addObject('after_save_stand_alone',filename);";to_do_onerror.value="";sent_to_save_attachment=true;this.obj_ratio=ratio.value;submit();}}
if(!sent_to_save_attachment){alert("no attachment");}
break;case'show':default:var toret="";toret+="<FORM name='forma_object_"+make_name(this.name)+"' method='POST' enctype='multipart/form-data'>";toret+="<INPUT type='hidden' name='MAX_FILE_SIZE' value='80000000'>";toret+="<INPUT type='hidden' name='input_file_name' value=''>";toret+="<INPUT type='hidden' name='to_do_onload' value=''>";toret+="<INPUT type='hidden' name='to_do_onerror' value=''>";toret+="<TABLE border='0' width='300' cellpadding='1' cellspacing='1' class='border bg_verylightblue'>";toret+="<tr><td class='center bold' colspan='2'>upload file</td></tr>";toret+="<tr><td width='125'>File</td><td width='175'><INPUT type='file' name='"+make_name(this.name)+"_attachment' size='40' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";toret+="<tr><td>Ratio </td><td><select id='ratio' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'><option value='a'>1/1</option><option value='.fahjccihhg'>golden landscape (0,6180339887)</option><option value='a.fahjccihhg'>golden portrait (1,6180339887)</option><option value='.e'>2/1</option><option value='.ccc'>3/1</option><option value='.be'>4/1</option><option value='.b'>5/1</option><option value='b'>1/2</option><option value='c'>1/3</option></select></td></tr>";toret+="<tr><td align='center' colspan='2'><INPUT type='button' name='"+make_name(this.name)+"_save_ctl' value='Save' onclick=\""+this.name+".addObject('save');\" class='file' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'><INPUT type='button' name='"+make_name(this.name)+"_close_ctl' value='Close' onclick=\"hide("+this.name+".fileupload_inner);\" class='file' style='background-color:#FFFFFF; border:1px solid #828177; font-family:arial; font-size:11px; color: #003399;'></td></tr>";toret+="</TABLE>";toret+="</FORM>";toret+="<IFRAME name='"+make_name(this.name)+"_process_upload_file' frameborder='0' width='0' height='0'></IFRAME>";if(!this.listenerAttached){this.listenerAttached=true;my_objects[my_objects.length]=this;}
if(innerHTML(this.fileupload_inner,toret)){var p=getElementPosition("addimage_"+make_name(this.name));show(this.fileupload_inner,p.left,p.top+p.height);}
break;}}
function getOffsetTop(elm){var mOffsetTop=elm.offsetTop;var mOffsetParent=elm.offsetParent;var parents_up=2;while(parents_up>0){mOffsetTop+=mOffsetParent.offsetTop;mOffsetParent=mOffsetParent.offsetParent;parents_up--;}
return mOffsetTop;}
function getOffsetLeft(elm){var mOffsetLeft=elm.offsetLeft;var mOffsetParent=elm.offsetParent;var parents_up=2;while(parents_up>0){mOffsetLeft+=mOffsetParent.offsetLeft;mOffsetParent=mOffsetParent.offsetParent;parents_up--;}
return mOffsetLeft;}
function RTE_selectFont(selectname){var idx=document.getElementById(selectname).selectedIndex;if(idx!=0){var selected=document.getElementById(selectname).options[idx].value;var cmd=selectname.replace('_'+this.rte,'');this.Command(cmd,selected);document.getElementById(selectname).selectedIndex=0;}}
function kb_handler(evt){if(evt.ctrlKey){var key=String.fromCharCode(evt.charCode).toLowerCase();var cmd='';switch(key){case'b':cmd="bold";break;case'i':cmd="italic";break;case'u':cmd="underline";break;};if(cmd){currentRTE.Command(cmd,null);evt.preventDefault();evt.stopPropagation();}}}
function insertHTML(html){var oRTE;if(document.all){oRTE=frames[currentRTE.rte];}else{oRTE=document.getElementById(currentRTE.rte).contentWindow;}
oRTE.focus();if(document.all){oRTE.document.selection.createRange().pasteHTML(html);}else{oRTE.document.execCommand('insertHTML',false,html);}}
function showHideElement(element,showHide){if(document.getElementById(element)){element=document.getElementById(element);}
if(showHide=="show"){element.style.visibility="visible";}else if(showHide=="hide"){element.style.visibility="hidden";}}
function RTE_setRange(){var oRTE;if(document.all){oRTE=frames[this.rte];var selection=oRTE.document.selection;if(selection!=null)this.rng=selection.createRange();}else{oRTE=document.getElementById(this.rte).contentWindow;var selection=oRTE.getSelection();this.rng=selection.getRangeAt(selection.rangeCount-1).cloneRange();}}
function stripHTML(oldString){var newString=oldString.replace(/(<([^>]+)>)/ig,"");newString=newString.replace(/\r\n/g," ");newString=newString.replace(/\n/g," ");newString=newString.replace(/\r/g," ");newString=trim(newString);return newString;}
function checkspell(){try{var tmpis=new ActiveXObject("ieSpell.ieSpellExtension");tmpis.CheckAllLinkedDocuments(document);}
catch(exception){if(exception.number==-2146827859){if(confirm("ieSpell not detected.  Click Ok to go to download page."))
window.open("http://www.iespell.com/download.php","DownLoad");}else{alert("Error Loading ieSpell: Exception "+exception.number);}}}
function raiseButton(e){var el=window.event.srcElement;className=el.className;if(className=='rteImage'||className=='rteImageLowered'){el.className='rteImageRaised';}}
function normalButton(e){var el=window.event.srcElement;className=el.className;if(className=='rteImageRaised'||className=='rteImageLowered'){el.className='rteImage';}}
function lowerButton(e){var el=window.event.srcElement;className=el.className;if(className=='rteImage'||className=='rteImageRaised'){el.className='rteImageLowered';}}
var turnOffYearSpan=false;var weekStartsOnSunday=false;var showWeekNumber=true;var languageCode="el";var calendar_display_time=true;var todayStringFormat='[todayString] [UCFdayString]. [day]. [monthString]';var pathToImages='images/';var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=0;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf('MSIE')>=0&&navigator.userAgent.indexOf('Opera')<0)MSIE=true;if(navigator.userAgent.indexOf('Opera')>=0)Opera=true;switch(languageCode){case"en":var monthArray=['January','February','March','April','May','June','July','August','September','October','November','December'];var monthArrayShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var dayArray=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'];var weekString='Week';var todayString='';break;case"el":var monthArray=['Ιανουαρίου','Φεβρουαρίου','Μαρτίου','Απριλίου','Μαΐου','Ιουνίου','Ιουλίου','Αυγούστου','Σεπτεμβρίου','Οκτωβρίου','Νοεμβρίου','Δεκεμβρίου'];var monthArrayShort=['Ιαν','Φεβ','Μαρ','Απρ','Μαΐ','Ιουν','Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'];var dayArray=['Δε','Τρ','Τε','Πε','Πα','Σα','Κυ'];var weekString='εβ';var todayString='Σήμερα';break;}
if(weekStartsOnSunday){var tempDayName=dayArray[6];for(var theIx=6;theIx>0;theIx--){dayArray[theIx]=dayArray[theIx-1];}
dayArray[0]=tempDayName;}
var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];var currentMonth;var currentYear;var currentHour;var currentMinute;var calendarContentDiv;var returnDateTo;var returnFormat;var activeSelectBoxMonth;var activeSelectBoxYear;var activeSelectBoxHour;var activeSelectBoxMinute;var iframeObj=false;var iframeObj2=false;function EIS_FIX_EI1(where2fixit)
{if(!iframeObj2)return;iframeObj2.style.display='block';iframeObj2.style.height=document.getElementById(where2fixit).offsetHeight+1;iframeObj2.style.width=document.getElementById(where2fixit).offsetWidth;iframeObj2.style.left=getleftPos(document.getElementById(where2fixit))+1-calendar_offsetLeft;iframeObj2.style.top=getTopPos(document.getElementById(where2fixit))-document.getElementById(where2fixit).offsetHeight-calendar_offsetTop;}
function EIS_Hide_Frame()
{if(iframeObj2)iframeObj2.style.display='none';}
var returnDateToYear;var returnDateToMonth;var returnDateToDay;var returnDateToHour;var returnDateToMinute;var inputYear;var inputMonth;var inputDay;var inputHour;var inputMinute;var calendarDisplayTime=false;var selectBoxHighlightColor='#D60808';var selectBoxRolloverBgColor='#E2EBED';var selectBoxMovementInProgress=false;var activeSelectBox=false;function cancelCalendarEvent()
{return false;}
function isLeapYear(inputYear)
{if(inputYear%400==0||(inputYear%4==0&&inputYear%100!=0))return true;return false;}
var activeSelectBoxMonth=false;var activeSelectBoxDirection=false;function highlightMonthYear()
{if(activeSelectBoxMonth)activeSelectBoxMonth.className='';activeSelectBox=this;if(this.className=='monthYearActive'){this.className='';}else{this.className='monthYearActive';activeSelectBoxMonth=this;}
if(this.innerHTML.indexOf('-')>=0||this.innerHTML.indexOf('+')>=0){if(this.className=='monthYearActive')
selectBoxMovementInProgress=true;else
selectBoxMovementInProgress=false;if(this.innerHTML.indexOf('-')>=0)activeSelectBoxDirection=-1;else activeSelectBoxDirection=1;}else selectBoxMovementInProgress=false;}
function showMonthDropDown()
{if(document.getElementById('monthDropDown').style.display=='block'){document.getElementById('monthDropDown').style.display='none';EIS_Hide_Frame();}else{document.getElementById('monthDropDown').style.display='block';document.getElementById('yearDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';if(MSIE)
{EIS_FIX_EI1('monthDropDown')}}}
function showYearDropDown()
{if(document.getElementById('yearDropDown').style.display=='block'){document.getElementById('yearDropDown').style.display='none';EIS_Hide_Frame();}else{document.getElementById('yearDropDown').style.display='block';document.getElementById('monthDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';if(MSIE)
{EIS_FIX_EI1('yearDropDown')}}}
function showHourDropDown()
{if(document.getElementById('hourDropDown').style.display=='block'){document.getElementById('hourDropDown').style.display='none';EIS_Hide_Frame();}else{document.getElementById('hourDropDown').style.display='block';document.getElementById('monthDropDown').style.display='none';document.getElementById('yearDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';if(MSIE)
{EIS_FIX_EI1('hourDropDown')}}}
function showMinuteDropDown()
{if(document.getElementById('minuteDropDown').style.display=='block'){document.getElementById('minuteDropDown').style.display='none';EIS_Hide_Frame();}else{document.getElementById('minuteDropDown').style.display='block';document.getElementById('monthDropDown').style.display='none';document.getElementById('yearDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';if(MSIE)
{EIS_FIX_EI1('minuteDropDown')}}}
function selectMonth()
{document.getElementById('calendar_month_txt').innerHTML=this.innerHTML
currentMonth=this.id.replace(/[^\d]/g,'');document.getElementById('monthDropDown').style.display='none';EIS_Hide_Frame();for(var no=0;no<monthArray.length;no++){document.getElementById('monthDiv_'+no).style.color='';}
this.style.color=selectBoxHighlightColor;activeSelectBoxMonth=this;writeCalendarContent();}
function selectHour()
{document.getElementById('calendar_hour_txt').innerHTML=this.innerHTML
currentHour=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('hourDropDown').style.display='none';EIS_Hide_Frame();if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}
activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor;}
function selectMinute()
{document.getElementById('calendar_minute_txt').innerHTML=this.innerHTML
currentMinute=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('minuteDropDown').style.display='none';EIS_Hide_Frame();if(activeSelectBoxMinute){activeSelectBoxMinute.style.color='';}
activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor;}
function selectYear()
{document.getElementById('calendar_year_txt').innerHTML=this.innerHTML
currentYear=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('yearDropDown').style.display='none';EIS_Hide_Frame();if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}
activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;writeCalendarContent();}
function switchMonth()
{if(this.src.indexOf('left')>=0){currentMonth=currentMonth-1;;if(currentMonth<0){currentMonth=11;currentYear=currentYear-1;}}else{currentMonth=currentMonth+1;;if(currentMonth>11){currentMonth=0;currentYear=currentYear/1+1;}}
writeCalendarContent();}
function createMonthDiv(){var div=document.createElement('DIV');div.className='monthYearPicker';div.id='monthPicker';for(var no=0;no<monthArray.length;no++){var subDiv=document.createElement('DIV');subDiv.innerHTML=monthArray[no];subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectMonth;subDiv.id='monthDiv_'+no;subDiv.style.width='56px';subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentMonth&&currentMonth==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxMonth=subDiv;}}
return div;}
function changeSelectBoxYear(e,inputObj)
{if(!inputObj)inputObj=this;var yearItems=inputObj.parentNode.getElementsByTagName('DIV');if(inputObj.innerHTML.indexOf('-')>=0){var startYear=yearItems[1].innerHTML/1-1;if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}}else{var startYear=yearItems[1].innerHTML/1+1;if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}}
for(var no=1;no<yearItems.length-1;no++){yearItems[no].innerHTML=startYear+no-1;yearItems[no].id='yearDiv'+(startYear/1+no/1-1);}
if(activeSelectBoxYear){activeSelectBoxYear.style.color='';if(document.getElementById('yearDiv'+currentYear)){activeSelectBoxYear=document.getElementById('yearDiv'+currentYear);activeSelectBoxYear.style.color=selectBoxHighlightColor;;}}}
function changeSelectBoxHour(e,inputObj)
{if(!inputObj)inputObj=this;var hourItems=inputObj.parentNode.getElementsByTagName('DIV');if(inputObj.innerHTML.indexOf('-')>=0){var startHour=hourItems[1].innerHTML/1-1;if(startHour<0)startHour=0;if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}}else{var startHour=hourItems[1].innerHTML/1+1;if(startHour>14)startHour=14;if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}}
var prefix='';for(var no=1;no<hourItems.length-1;no++){if((startHour/1+no/1)<11)prefix='0';else prefix='';hourItems[no].innerHTML=prefix+(startHour+no-1);hourItems[no].id='hourDiv'+(startHour/1+no/1-1);}
if(activeSelectBoxHour){activeSelectBoxHour.style.color='';if(document.getElementById('hourDiv'+currentHour)){activeSelectBoxHour=document.getElementById('hourDiv'+currentHour);activeSelectBoxHour.style.color=selectBoxHighlightColor;;}}}
function updateYearDiv()
{var yearSpan=5;if(turnOffYearSpan){yearSpan=0;}
var div=document.getElementById('yearDropDown');var yearItems=div.getElementsByTagName('DIV');for(var no=1;no<yearItems.length-1;no++){yearItems[no].innerHTML=currentYear/1-yearSpan+no;if(currentYear==(currentYear/1-yearSpan+no)){yearItems[no].style.color=selectBoxHighlightColor;activeSelectBoxYear=yearItems[no];}else{yearItems[no].style.color='';}}}
function updateMonthDiv()
{for(no=0;no<12;no++){document.getElementById('monthDiv_'+no).style.color='';}
document.getElementById('monthDiv_'+currentMonth).style.color=selectBoxHighlightColor;activeSelectBoxMonth=document.getElementById('monthDiv_'+currentMonth);}
function updateHourDiv()
{var div=document.getElementById('hourDropDown');var hourItems=div.getElementsByTagName('DIV');var addHours=0;if((currentHour/1-6+1)<0){addHours=(currentHour/1-6+1)*-1;}
for(var no=1;no<hourItems.length-1;no++){var prefix='';if((currentHour/1-6+no+addHours)<10)prefix='0';hourItems[no].innerHTML=prefix+(currentHour/1-6+no+addHours);if(currentHour==(currentHour/1-6+no)){hourItems[no].style.color=selectBoxHighlightColor;activeSelectBoxHour=hourItems[no];}else{hourItems[no].style.color='';}}}
function updateMinuteDiv()
{for(no=0;no<60;no+=intervalSelectBox_minutes){var prefix='';if(no<10)prefix='0';document.getElementById('minuteDiv_'+prefix+no).style.color='';}
if(document.getElementById('minuteDiv_'+currentMinute)){document.getElementById('minuteDiv_'+currentMinute).style.color=selectBoxHighlightColor;activeSelectBoxMinute=document.getElementById('minuteDiv_'+currentMinute);}}
function createYearDiv()
{if(!document.getElementById('yearDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('yearDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
var d=new Date();if(currentYear){d.setFullYear(currentYear);}
var startYear=d.getFullYear()/1-5;var yearSpan=10;if(!turnOffYearSpan){var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;- ';subDiv.onclick=changeSelectBoxYear;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);}else{startYear=d.getFullYear()/1-0;yearSpan=2;}
for(var no=startYear;no<(startYear+yearSpan);no++){var subDiv=document.createElement('DIV');subDiv.innerHTML=no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectYear;subDiv.id='yearDiv'+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
if(!turnOffYearSpan){var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;+ ';subDiv.onclick=changeSelectBoxYear;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);}
return div;}
function slideCalendarSelectBox()
{if(selectBoxMovementInProgress){if(activeSelectBox.parentNode.id=='hourDropDown'){changeSelectBoxHour(false,activeSelectBox);}
if(activeSelectBox.parentNode.id=='yearDropDown'){changeSelectBoxYear(false,activeSelectBox);}}
setTimeout('slideCalendarSelectBox()',speedOfSelectBoxSliding);}
function createHourDiv()
{if(!document.getElementById('hourDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('hourDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
if(!currentHour)currentHour=0;var startHour=currentHour/1;if(startHour>14)startHour=14;var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;- ';subDiv.onclick=changeSelectBoxHour;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);for(var no=startHour;no<startHour+10;no++){var prefix='';if(no/1<10)prefix='0';var subDiv=document.createElement('DIV');subDiv.innerHTML=prefix+no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectHour;subDiv.id='hourDiv'+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;+ ';subDiv.onclick=changeSelectBoxHour;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);return div;}
function createMinuteDiv()
{if(!document.getElementById('minuteDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('minuteDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
var startMinute=0;var prefix='';for(var no=startMinute;no<60;no+=intervalSelectBox_minutes){if(no<10)prefix='0';else prefix='';var subDiv=document.createElement('DIV');subDiv.innerHTML=prefix+no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectMinute;subDiv.id='minuteDiv_'+prefix+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
return div;}
function highlightSelect()
{if(this.className=='selectBoxTime'){this.className='selectBoxTimeOver';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_time_over.gif';}else if(this.className=='selectBoxTimeOver'){this.className='selectBoxTime';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_time.gif';}
if(this.className=='selectBox'){this.className='selectBoxOver';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_over.gif';}else if(this.className=='selectBoxOver'){this.className='selectBox';this.getElementsByTagName('IMG')[0].src=pathToImages+'down.gif';}}
function highlightArrow()
{if(this.src.indexOf('over')>=0){if(this.src.indexOf('left')>=0)this.src=pathToImages+'left.gif';if(this.src.indexOf('right')>=0)this.src=pathToImages+'right.gif';}else{if(this.src.indexOf('left')>=0)this.src=pathToImages+'left_over.gif';if(this.src.indexOf('right')>=0)this.src=pathToImages+'right_over.gif';}}
function highlightClose()
{if(this.src.indexOf('over')>=0){this.src=pathToImages+'close.gif';}else{this.src=pathToImages+'close_over.gif';}}
function closeCalendar(){document.getElementById('yearDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';calendarDiv.style.display='none';if(iframeObj){iframeObj.style.display='none';EIS_Hide_Frame();}
if(activeSelectBoxMonth)activeSelectBoxMonth.className='';if(activeSelectBoxYear)activeSelectBoxYear.className='';}
function writeTopBar()
{var topBar=document.createElement('DIV');topBar.className='topBar';topBar.id='topBar';calendarDiv.appendChild(topBar);var leftDiv=document.createElement('DIV');leftDiv.style.marginRight='1px';var img=document.createElement('IMG');img.src=pathToImages+'left.gif';img.onmouseover=highlightArrow;img.onclick=switchMonth;img.onmouseout=highlightArrow;leftDiv.appendChild(img);topBar.appendChild(leftDiv);if(Opera)leftDiv.style.width='16px';var rightDiv=document.createElement('DIV');rightDiv.style.marginRight='1px';var img=document.createElement('IMG');img.src=pathToImages+'right.gif';img.onclick=switchMonth;img.onmouseover=highlightArrow;img.onmouseout=highlightArrow;rightDiv.appendChild(img);if(Opera)rightDiv.style.width='16px';topBar.appendChild(rightDiv);var monthDiv=document.createElement('DIV');monthDiv.id='monthSelect';monthDiv.onmouseover=highlightSelect;monthDiv.onmouseout=highlightSelect;monthDiv.onclick=showMonthDropDown;var span=document.createElement('SPAN');span.innerHTML=monthArray[currentMonth];span.id='calendar_month_txt';monthDiv.appendChild(span);var img=document.createElement('IMG');img.src=pathToImages+'down.gif';img.style.position='absolute';img.style.right='0px';monthDiv.appendChild(img);monthDiv.className='selectBox';if(Opera){img.style.cssText='float:right;position:relative';img.style.position='relative';img.style.styleFloat='right';}
topBar.appendChild(monthDiv);var monthPicker=createMonthDiv();monthPicker.style.left='37px';monthPicker.style.top=monthDiv.offsetTop+monthDiv.offsetHeight+1+'px';monthPicker.style.width='60px';monthPicker.id='monthDropDown';calendarDiv.appendChild(monthPicker);var yearDiv=document.createElement('DIV');yearDiv.onmouseover=highlightSelect;yearDiv.onmouseout=highlightSelect;yearDiv.onclick=showYearDropDown;var span=document.createElement('SPAN');span.innerHTML=currentYear;span.id='calendar_year_txt';yearDiv.appendChild(span);topBar.appendChild(yearDiv);var img=document.createElement('IMG');img.src=pathToImages+'down.gif';yearDiv.appendChild(img);yearDiv.className='selectBox';if(Opera){yearDiv.style.width='50px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var yearPicker=createYearDiv();yearPicker.style.left='113px';yearPicker.style.top=monthDiv.offsetTop+monthDiv.offsetHeight+1+'px';yearPicker.style.width='35px';yearPicker.id='yearDropDown';calendarDiv.appendChild(yearPicker);var img=document.createElement('IMG');img.src=pathToImages+'close.gif';img.style.styleFloat='right';img.onmouseover=highlightClose;img.onmouseout=highlightClose;img.onclick=closeCalendar;topBar.appendChild(img);if(!document.all){img.style.position='absolute';img.style.right='2px';}}
function writeCalendarContent()
{var calendarContentDivExists=true;if(!calendarContentDiv){calendarContentDiv=document.createElement('DIV');calendarDiv.appendChild(calendarContentDiv);calendarContentDivExists=false;}
currentMonth=currentMonth/1;var d=new Date();d.setFullYear(currentYear);d.setDate(1);d.setMonth(currentMonth);var dayStartOfMonth=d.getDay();if(!weekStartsOnSunday){if(dayStartOfMonth==0)dayStartOfMonth=7;dayStartOfMonth--;}
document.getElementById('calendar_year_txt').innerHTML=currentYear;document.getElementById('calendar_month_txt').innerHTML=monthArray[currentMonth];document.getElementById('calendar_hour_txt').innerHTML=currentHour;document.getElementById('calendar_minute_txt').innerHTML=currentMinute;var existingTable=calendarContentDiv.getElementsByTagName('TABLE');if(existingTable.length>0){calendarContentDiv.removeChild(existingTable[0]);}
var calTable=document.createElement('TABLE');calTable.width='100%';calTable.cellSpacing='0';calendarContentDiv.appendChild(calTable);var calTBody=document.createElement('TBODY');calTable.appendChild(calTBody);var row=calTBody.insertRow(-1);row.className='calendar_week_row';if(showWeekNumber){var cell=row.insertCell(-1);cell.innerHTML=weekString;cell.className='calendar_week_column';cell.style.backgroundColor=selectBoxRolloverBgColor;}
for(var no=0;no<dayArray.length;no++){var cell=row.insertCell(-1);cell.innerHTML=dayArray[no];}
var row=calTBody.insertRow(-1);if(showWeekNumber){var cell=row.insertCell(-1);cell.className='calendar_week_column';cell.style.backgroundColor=selectBoxRolloverBgColor;var week=getWeek(currentYear,currentMonth,1);cell.innerHTML=week;}
for(var no=0;no<dayStartOfMonth;no++){var cell=row.insertCell(-1);cell.innerHTML='&nbsp;';}
var colCounter=dayStartOfMonth;var daysInMonth=daysInMonthArray[currentMonth];if(daysInMonth==28){if(isLeapYear(currentYear))daysInMonth=29;}
for(var no=1;no<=daysInMonth;no++){d.setDate(no-1);if(colCounter>0&&colCounter%7==0){var row=calTBody.insertRow(-1);if(showWeekNumber){var cell=row.insertCell(-1);cell.className='calendar_week_column';var week=getWeek(currentYear,currentMonth,no);cell.innerHTML=week;cell.style.backgroundColor=selectBoxRolloverBgColor;}}
var cell=row.insertCell(-1);if(currentYear==inputYear&&currentMonth==inputMonth&&no==inputDay){cell.className='activeDay';}
cell.innerHTML=no;cell.onclick=pickDate;colCounter++;}
if(!document.all){if(calendarContentDiv.offsetHeight)
document.getElementById('topBar').style.top=calendarContentDiv.offsetHeight+document.getElementById('timeBar').offsetHeight+document.getElementById('topBar').offsetHeight-1+'px';else{document.getElementById('topBar').style.top='';document.getElementById('topBar').style.bottom='0px';}}
if(iframeObj){if(!calendarContentDivExists)setTimeout('resizeIframe()',350);else setTimeout('resizeIframe()',10);}}
function resizeIframe()
{iframeObj.style.width=calendarDiv.offsetWidth+'px';iframeObj.style.height=calendarDiv.offsetHeight+'px';}
function pickTodaysDate()
{var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();pickDate(false,d.getDate());}
function pickDate(e,inputDay)
{var month=currentMonth/1+1;if(month<10)month='0'+month;var day;if(!inputDay&&this)day=this.innerHTML;else day=inputDay;if(day/1<10)day='0'+day;if(currentHour/1<10)currentHour='0'+currentHour/1;if(currentMinute/1<10)currentMinute='0'+currentMinute/1;if(returnFormat){returnFormat=returnFormat.replace('dd',day);returnFormat=returnFormat.replace('mm',month);returnFormat=returnFormat.replace('yyyy',currentYear);returnFormat=returnFormat.replace('hh',currentHour);returnFormat=returnFormat.replace('ii',currentMinute);returnFormat=returnFormat.replace('d',day/1);returnFormat=returnFormat.replace('m',month/1);returnDateTo.value=returnFormat;try{returnDateTo.onchange();}catch(e){}}else{for(var no=0;no<returnDateToYear.options.length;no++){if(returnDateToYear.options[no].value==currentYear){returnDateToYear.selectedIndex=no;break;}}
for(var no=0;no<returnDateToMonth.options.length;no++){if(returnDateToMonth.options[no].value==parseInt(month)){returnDateToMonth.selectedIndex=no;break;}}
for(var no=0;no<returnDateToDay.options.length;no++){if(returnDateToDay.options[no].value==parseInt(day)){returnDateToDay.selectedIndex=no;break;}}
if(calendarDisplayTime){for(var no=0;no<returnDateToHour.options.length;no++){if(returnDateToHour.options[no].value==parseInt(currentHour)){returnDateToHour.selectedIndex=no;break;}}
for(var no=0;no<returnDateToMinute.options.length;no++){if(returnDateToMinute.options[no].value==parseInt(currentMinute)){returnDateToMinute.selectedIndex=no;break;}}}}
closeCalendar();}
function getWeek(year,month,day){if(!weekStartsOnSunday){day=(day/1);}else{day=(day/1)+1;}
year=year/1;month=month/1+1;var a=Math.floor((14-(month))/12);var y=year+4800-a;var m=(month)+(12*a)-3;var jd=day+Math.floor(((153*m)+2)/5)+
(365*y)+Math.floor(y/4)-Math.floor(y/100)+
Math.floor(y/400)-32045;var d4=(jd+31741-(jd%7))%146097%36524%1461;var L=Math.floor(d4/1460);var d1=((d4-L)%365)+L;NumberOfWeek=Math.floor(d1/7)+1;return NumberOfWeek;}
function writeTimeBar()
{var timeBar=document.createElement('DIV');timeBar.id='timeBar';timeBar.className='timeBar';var subDiv=document.createElement('DIV');subDiv.innerHTML='Time:';var hourDiv=document.createElement('DIV');hourDiv.onmouseover=highlightSelect;hourDiv.onmouseout=highlightSelect;hourDiv.onclick=showHourDropDown;hourDiv.style.width='30px';var span=document.createElement('SPAN');span.innerHTML=currentHour;span.id='calendar_hour_txt';hourDiv.appendChild(span);timeBar.appendChild(hourDiv);var img=document.createElement('IMG');img.src=pathToImages+'down_time.gif';hourDiv.appendChild(img);hourDiv.className='selectBoxTime';if(Opera){hourDiv.style.width='30px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var hourPicker=createHourDiv();hourPicker.style.left='130px';hourPicker.style.width='35px';hourPicker.id='hourDropDown';calendarDiv.appendChild(hourPicker);var minuteDiv=document.createElement('DIV');minuteDiv.onmouseover=highlightSelect;minuteDiv.onmouseout=highlightSelect;minuteDiv.onclick=showMinuteDropDown;minuteDiv.style.width='30px';var span=document.createElement('SPAN');span.innerHTML=currentMinute;span.id='calendar_minute_txt';minuteDiv.appendChild(span);timeBar.appendChild(minuteDiv);var img=document.createElement('IMG');img.src=pathToImages+'down_time.gif';minuteDiv.appendChild(img);minuteDiv.className='selectBoxTime';if(Opera){minuteDiv.style.width='30px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var minutePicker=createMinuteDiv();minutePicker.style.left='167px';minutePicker.style.width='35px';minutePicker.id='minuteDropDown';calendarDiv.appendChild(minutePicker);return timeBar;}
function writeBottomBar()
{var d=new Date();var bottomBar=document.createElement('DIV');bottomBar.id='bottomBar';bottomBar.style.cursor='pointer';bottomBar.className='todaysDate';var subDiv=document.createElement('DIV');subDiv.onclick=pickTodaysDate;subDiv.id='todaysDateString';subDiv.style.width=(calendarDiv.offsetWidth-95)+'px';var day=d.getDay();if(!weekStartsOnSunday){if(day==0)day=7;day--;}
var bottomString=todayStringFormat;bottomString=bottomString.replace('[monthString]',monthArrayShort[d.getMonth()]);bottomString=bottomString.replace('[day]',d.getDate());bottomString=bottomString.replace('[year]',d.getFullYear());bottomString=bottomString.replace('[dayString]',dayArray[day].toLowerCase());bottomString=bottomString.replace('[UCFdayString]',dayArray[day]);bottomString=bottomString.replace('[todayString]',todayString);subDiv.innerHTML=todayString+': '+d.getDate()+'. '+monthArrayShort[d.getMonth()];subDiv.innerHTML=bottomString;bottomBar.appendChild(subDiv);var timeDiv=writeTimeBar();bottomBar.appendChild(timeDiv);calendarDiv.appendChild(bottomBar);}
function getTopPos(inputObj)
{var returnValue=inputObj.offsetTop+inputObj.offsetHeight;while((inputObj=inputObj.offsetParent)!=null)returnValue+=inputObj.offsetTop;return returnValue+calendar_offsetTop;}
function getleftPos(inputObj)
{var returnValue=inputObj.offsetLeft;while((inputObj=inputObj.offsetParent)!=null)returnValue+=inputObj.offsetLeft;return returnValue+calendar_offsetLeft;}
function positionCalendar(inputObj)
{calendarDiv.style.left=getleftPos(inputObj)+'px';calendarDiv.style.top=getTopPos(inputObj)+'px';if(iframeObj){iframeObj.style.left=calendarDiv.style.left;iframeObj.style.top=calendarDiv.style.top;iframeObj2.style.left=calendarDiv.style.left;iframeObj2.style.top=calendarDiv.style.top;}}
function initCalendar()
{if(MSIE){iframeObj=document.createElement('IFRAME');iframeObj.style.filter='alpha(opacity=0)';iframeObj.style.position='absolute';iframeObj.border='0px';iframeObj.style.border='0px';iframeObj.style.backgroundColor='#FF0000';iframeObj2=document.createElement('IFRAME');iframeObj2.style.position='absolute';iframeObj2.border='0px';iframeObj2.style.border='0px';iframeObj2.style.height='1px';iframeObj2.style.width='1px';iframeObj2.src='blank.html';iframeObj.src='blank.html';document.body.appendChild(iframeObj2);document.body.appendChild(iframeObj);}
calendarDiv=document.createElement('DIV');calendarDiv.id='calendarDiv';calendarDiv.style.zIndex=1000;slideCalendarSelectBox();document.body.appendChild(calendarDiv);writeBottomBar();writeTopBar();if(!currentYear){var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();}
writeCalendarContent();}
function setTimeProperties()
{if(!calendarDisplayTime){document.getElementById('timeBar').style.display='none';document.getElementById('timeBar').style.visibility='hidden';document.getElementById('todaysDateString').style.width='100%';}else{document.getElementById('timeBar').style.display='block';document.getElementById('timeBar').style.visibility='visible';document.getElementById('hourDropDown').style.top=document.getElementById('calendar_minute_txt').parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById('topBar').offsetHeight+'px';document.getElementById('minuteDropDown').style.top=document.getElementById('calendar_minute_txt').parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById('topBar').offsetHeight+'px';document.getElementById('minuteDropDown').style.right='50px';document.getElementById('hourDropDown').style.right='50px';document.getElementById('todaysDateString').style.width='125px';}}
function calendarSortItems(a,b)
{return a/1-b/1;}
function displayCalendar(inputField,format,buttonObj,displayTime,timeInput)
{if(displayTime)calendarDisplayTime=true;else calendarDisplayTime=false;if(inputField.value.length>6){if(!inputField.value.match(/^[0-9]*?$/gi)){var items=inputField.value.split(/[^0-9]/gi);var positionArray=new Object();positionArray.m=format.indexOf('mm');if(positionArray.m==-1)positionArray.m=format.indexOf('m');positionArray.d=format.indexOf('dd');if(positionArray.d==-1)positionArray.d=format.indexOf('d');positionArray.y=format.indexOf('yyyy');positionArray.h=format.indexOf('hh');positionArray.i=format.indexOf('ii');this.initialHour='00';this.initialMinute='00';var elements=['y','m','d','h','i'];var properties=['currentYear','currentMonth','inputDay','currentHour','currentMinute'];var propertyLength=[4,2,2,2,2];for(var i=0;i<elements.length;i++){if(positionArray[elements[i]]>=0){window[properties[i]]=inputField.value.substr(positionArray[elements[i]],propertyLength[i])/1;}}
currentMonth--;}else{var monthPos=format.indexOf('mm');currentMonth=inputField.value.substr(monthPos,2)/1-1;var yearPos=format.indexOf('yyyy');currentYear=inputField.value.substr(yearPos,4);var dayPos=format.indexOf('dd');tmpDay=inputField.value.substr(dayPos,2);var hourPos=format.indexOf('hh');if(hourPos>=0){tmpHour=inputField.value.substr(hourPos,2);currentHour=tmpHour;}else{currentHour='00';}
var minutePos=format.indexOf('ii');if(minutePos>=0){tmpMinute=inputField.value.substr(minutePos,2);currentMinute=tmpMinute;}else{currentMinute='00';}}}else{var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();currentHour='08';currentMinute='00';inputDay=d.getDate()/1;}
inputYear=currentYear;inputMonth=currentMonth;if(!calendarDiv){initCalendar();}else{if(calendarDiv.style.display=='block'){closeCalendar();return false;}
writeCalendarContent();}
returnFormat=format;returnDateTo=inputField;positionCalendar(buttonObj);calendarDiv.style.visibility='visible';calendarDiv.style.display='block';if(iframeObj){iframeObj.style.display='';iframeObj.style.height='140px';iframeObj.style.width='195px';iframeObj2.style.display='';iframeObj2.style.height='140px';iframeObj2.style.width='195px';}
setTimeProperties();updateYearDiv();updateMonthDiv();updateMinuteDiv();updateHourDiv();}
function displayCalendarSelectBox(yearInput,monthInput,dayInput,hourInput,minuteInput,buttonObj)
{if(!hourInput)calendarDisplayTime=false;else calendarDisplayTime=true;currentMonth=monthInput.options[monthInput.selectedIndex].value/1-1;currentYear=yearInput.options[yearInput.selectedIndex].value;if(hourInput){currentHour=hourInput.options[hourInput.selectedIndex].value;inputHour=currentHour/1;}
if(minuteInput){currentMinute=minuteInput.options[minuteInput.selectedIndex].value;inputMinute=currentMinute/1;}
inputYear=yearInput.options[yearInput.selectedIndex].value;inputMonth=monthInput.options[monthInput.selectedIndex].value/1-1;inputDay=dayInput.options[dayInput.selectedIndex].value/1;if(!calendarDiv){initCalendar();}else{writeCalendarContent();}
returnDateToYear=yearInput;returnDateToMonth=monthInput;returnDateToDay=dayInput;returnDateToHour=hourInput;returnDateToMinute=minuteInput;returnFormat=false;returnDateTo=false;positionCalendar(buttonObj);calendarDiv.style.visibility='visible';calendarDiv.style.display='block';if(iframeObj){iframeObj.style.display='';iframeObj.style.height=calendarDiv.offsetHeight+'px';iframeObj.style.width=calendarDiv.offsetWidth+'px';iframeObj2.style.display='';iframeObj2.style.height=calendarDiv.offsetHeight+'px';iframeObj2.style.width=calendarDiv.offsetWidth+'px'}
setTimeProperties();updateYearDiv();updateMonthDiv();updateHourDiv();updateMinuteDiv();}function Comment(name,parent){this.name=name;this.parent=parent;this.inner=make_name(this.name)+"_inner";this.inner_status=make_name(this.name)+"_inner_status";this.inner_edit=make_name(this.name)+"_inner_edit";this.confirm_img_inner=make_name(this.name)+"_confirm_img_inner";this.inactive_inner=make_name(this.name)+"_inactive_inner";this.init=function(){this.id="new";this.table_ref_id="new";this.nickname="";this.comment="";this.xr_id="";this.avatar_ei_id="";this.xr_type="";this.status="active";this.gl="el";this.inserted="";this.modified="";};this.load=function(what){this.id=e(what["id"]);this.nickname=e(what["nickname"]);this.comment=e(what["comment"]);this.xr_id=e(what["xr_id"]);this.avatar_ei_id=e(what["avatar_ei_id"]);this.xr_type=e(what["xr_type"]);this.status=e(what["status"]);this.inserted=e(what["inserted"]);this.modified=e(what["modified"]);};this.to_send=function(){var toret=new Array();toret["id"]=this.id;toret["table_ref_id"]=this.table_ref_id;toret["gl"]=this.gl;toret["nickname"]=this.nickname;toret["comment"]=this.comment;toret["xr_id"]=this.xr_id;toret["status"]=this.status;if(this.show_confirmation_string){toret["cs_id"]=this.cs_id;toret["cs"]=this.cs;}
return toret;};this.can_save=function(that){if(d(this.nickname)==""){alert("Το ψευδώνυμο δεν μπορεί να είναι κενό");if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){that.form[make_name(this.name)+"_nickname"].focus();}}
return false;}
if(d(this.comment)==""){alert("Το σχόλιο σας δεν μπορεί να είναι άδειο");if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){that.form[make_name(this.name)+"_comment"].focus();}}
return false;}
if(this.show_confirmation_string){if(d(this.cs)==""||d(this.cs).length!=5){alert("Ο κωδικός επιβεβαίωσης δεν μπορεί να είναι κενός ή μικρότερος των 5 χαρακτήρων");if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){that.form[make_name(this.name)+"_cs"].focus();}}
return false;}}
return true;}
this.prepare_save=function(that){if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){this.nickname=e(trim(that.form[make_name(this.name)+"_nickname"].value));this.comment=e(trim(that.form[make_name(this.name)+"_comment"].value));if(this.show_confirmation_string){this.cs=e(trim(that.form[make_name(this.name)+"_cs"].value));}}}}
this.save=function(that){this.show_inactive();this.prepare_save(that);if(this.can_save(that)){if(get_element(this.inner_status)){innerHTML(this.inner_status,"Το σχόλιο σώζεται");}
var a=new PHP_Serializer();var b=a.serialize(this.to_send());var what_to_do=new Object();what_to_do.callback=do_save_comment;what_to_do.extra_data=this;x_save_comment(b,what_to_do);}
else{this.hide_inactive()}}
this.inform_comment_masters=function(that){if(this.id!="new"&&this.id!=""){var c=new Array();c["id"]=this.id;c["gl"]=this.gl;var a=new PHP_Serializer();var b=a.serialize(c);var what_to_do=new Object();what_to_do.callback=do_inform_comment_masters;what_to_do.extra_data=this;x_inform_comment_masters(b,what_to_do);}}
this.after_save=this.show;this.show=function(){if(innerHTML(this.inner,this.draw())){show(this.inner);};}
this.draw=function(cl1,cl2){var table="";var cl=(this.status!="active")?" bg_lightgrey darkgrey ":"";table+="<TABLE border='0' width='100%' cellpadding='15' cellspacing='0' class='"+cl+"'>";table+="<tr><td valign='top' class='darkgrey "+cl1+"' style='width: 130px'>";table+="<span class='bold black'>"+d(this.nickname)+"</span>"+((this.xr_type!="")?"<br>"+this.xr_type:"<br>guest")+((this.id!="new")?"<br><span class='italic'>"+formatDate(new Date(getDateFromFormat(d(this.inserted),"yyyy-MM-dd HH:mm:ss")),"dd/MM/yy HH:mm")+"</span>":"")+"</td>";table+="<td valign='top' class='darkgrey "+cl2+"'>"+d(this.comment)+"</td></tr>";if(this.editable){table+="<tr><td align='center' colspan='2'><input type='button' name='"+make_name(this.name)+"_edit_ctl' value='Τροποποίηση' onclick='"+this.name+".show_edit()'>"+((this.id!="new")?"&nbsp;<input type='button' name='"+make_name(this.name)+"_status_ctl' value='"+((this.status!="active")?"Ενεργοποίηση&nbsp;":"Διαγραφή")+"' onclick=\""+this.name+".status='"+((this.status!="active")?"active":"deactive")+"';"+this.name+".save()\">":"")+"</td></tr>";}
table+="</TABLE>";if(!this.editable&&this.id=="new"){table=this.draw_edit();}
return table;}
this.show_edit=function(){if(innerHTML(this.inner_edit,this.draw_edit())){var p=getElementPosition(this.inner);show(this.inner_edit,p.left,p.top);};}
this.draw_edit=function(){var r="";r+="<TABLE border='0' cellpadding='0' cellspacing='0' style='' >";r+="<tr>";r+="  <td style='vertical-align: top; padding: 20px;' class='bg_darkgrey white'>";r+="<div class='big bold white'>Προσθήκη σχολίου</div>"
r+="<div style='width: 100px; float: left; margin-top: 10px;' class='white bold'>ψευδώνυμο&nbsp;</div>";r+="<div style='width: 200px; float: right; margin-top: 10px;'><input type='text' name='"+make_name(this.name)+"_nickname' class='navy' style='width: 200px;' "+((this.xr_id!="")?"readonly":"")+" value='"+d(this.nickname)+"'></div>";r+="<div style='width: 300px; float: right; margin-top: 10px;' title='σχόλιο'><TEXTAREA name='"+make_name(this.name)+"_comment' class='navy' style='width: 300px; height: 160px;'>"+d(this.comment)+"</TEXTAREA></div>";r+="  </td>";r+="  <td style='width: 130px; vertical-align: top; padding: 40px 20px 40px 20px;' class='bg_black white center'>";if(this.show_confirmation_string){r+="Κωδικός επιβεβαίωσης, γράψτε τους χαρακτήρες που βλέπετε στην εικόνα<br><br>";r+="<div id='"+this.confirm_img_inner+"'></div>";r+="<input type='text' name='"+make_name(this.name)+"_cs' maxlength='5' style='width: 60px; height: 20px; text-align: center; vertical-align: middle; padding: 0px; margin: 0px; font-size: 16px;' class='pink bold bg_white border_darkgrey'><br><br>";this.get_confirm_img();}
r+="<input type='button' name='"+make_name(this.name)+"_save_ctl' value='Αποθήκευση&nbsp;' onclick='"+this.name+".save(this);hide("+this.name+".inner_edit);' style='width: 90px; height: 20px; text-align: center; vertical-align: middle; padding: 0px;padding-bottom: 2px; margin: 0px; font-size: 12px;' class='white bg_grey border_grey' onmouseover=\"this.className='white bg_darkgrey border_darkgrey';\" onmouseout=\"this.className='white bg_grey border_grey';\">"+((this.editable)?"&nbsp;<input type='button' name='"+make_name(this.name)+"_close_ctl' value='Άκυρο' onclick='hide("+this.name+".inner_edit);'>":"")+"";r+="  </div></div>";r+="  </td>";r+="</tr>";r+="</TABLE>";if(this.xr_id==""){}
return r;}
this.after_save=this.show;this.get_confirm_img=function(){if(get_element(this.confirm_img_inner)){innerHTML(this.confirm_img_inner,"Η εικόνα με τους χαρακτήρες φορτώνεται...");}
var a=new PHP_Serializer();var b=a.serialize();var what_to_do=new Object();what_to_do.callback=do_get_confirm_img;what_to_do.extra_data=this;x_make_confirm_string(b,what_to_do);}
this.show_inactive=function(){if(get_element(this.inner)){var p=getElementPosition(this.inner);innerHTML(this.inactive_inner,"<table style='width: "+p.width+"px; height: "+p.height+"px' class='border bg_black opac60'><tr><td align='center' valign='middle' class='bold white'>...</td></tr></table>");show(this.inactive_inner,p.left,p.top);}}
this.hide_inactive=function(){hide(this.inactive_inner)}
this.init();}
function do_save_comment(that,aaa){var b=that;if(b["status"]==1){aaa.load(b["data"]);aaa.inform_comment_masters();aaa.after_save();}
else if(b["status"]==-2){alert("Πληκτρολογείστε τον κωδικό επιβεβαίωσης σωστά!");}
else{alert("Πρόβλημα κατά εισαγωγή στο σύστημα, ανανεώστε την σελίδα και ξαναδοκιμάστε");}
aaa.hide_inactive();handle_status(b["status"],b["mesg"]);}
function do_get_confirm_img(that,aaa){var b=that;if(b["status"]==1){aaa.cs_id=b["data"]["cs_id"];if(get_element(aaa.confirm_img_inner)){innerHTML(aaa.confirm_img_inner,"<img src='imgage_confirm.php?id="+aaa.cs_id+"' border='0' class='' alt='cs' title='cs' >");}}
handle_status(b["status"],b["mesg"]);}
function do_inform_comment_masters(that,aaa){var b=that;if(b["status"]==1){}
handle_status(b["status"],b["mesg"]);}
function Comments(name,parent){this.name=name;this.parent=parent;this.inner=make_name(this.name)+"_inner";this.inner_status=this.inner;this.inactive_inner=make_name(this.name)+"_inactive_inner";this.use_own_form=false;this.editable=false;this.show_deactive=true;this.show_label=false;this.show_load_ctl=true;this.show_confirmation_string=false;this.default_xr_id="";this.default_nickname="";this.init=function(){this.table_ref_id="new";this.gl="el";this.selected_i=-1;this.set=new Array();}
this.before_add=function(){};this.add=function(){this.before_add();var length=this.set.length;this.set[length]=new Comment(this.name+".set["+length+"]",this);this.set[length].table_ref_id=this.table_ref_id;this.set[length].gl=this.gl;this.set[length].xr_id=this.default_xr_id;this.set[length].nickname=this.default_nickname;this.set[length].inner_edit=make_name(this.name)+"_edit_inner";this.set[length].inactive_inner=this.inactive_inner;this.set[length].editable=this.editable;this.set[length].show_confirmation_string=this.show_confirmation_string;this.set[length].after_save=function(){this.parent.show();}
return length;}
this.load=function(what){this.set=new Array();for(var i in what){var length=this.add();this.set[length].load(what[i]);}}
this.to_send=function(){var toret=new Array();toret["id"]=this.table_ref_id;toret["gl"]=this.gl;return toret;}
this.get=comments_get;this.after_get=comments_show;this.show=comments_show;this.draw=comments_draw;this.frame=function(title,body,w,h,color){var r="";r+="<TABLE border='0' cellpadding='0' cellspacing='0' style=\"width: "+w+"px;\">";if(title!=""){r+="<tr>";r+="  <td  style=\"width:5px; height:5px; background-image: url(images/angle_ul.gif); background-repeat: no-repeat;\"></td>";r+="  <td rowspan='2' style=\"width: "+(w-10)+"px;height:38px; background-image: url(images/header.gif); background-repeat: repeat-x;\">"+title+"</td>";r+="  <td style=\"width:5px; height:5px; background-image: url(images/angle_ur.gif); background-repeat: no-repeat;\"></td>";r+="</tr>";r+="<tr>";r+="  <td style=\"width:5px; height:33px; background-image: url(images/header_rear.gif); background-repeat: repeat-x;\"></td>";r+="  <td style=\"width:5px; height:33px; background-image: url(images/header_rear.gif); background-repeat: repeat-x;\"></td>";r+="</tr>";}
else{r+="<tr>";r+="  <td style=\"width:5px; height:5px; background-image: url(images/angle_ul_"+color+".gif); background-repeat: no-repeat;\"></td>";r+="  <td style=\"width: "+(w-10)+"px; height:5px; background-color: #"+color+"\"></td>";r+="  <td style=\"width:5px; height:5px; background-image: url(images/angle_ur_"+color+".gif); background-repeat: no-repeat;\"></td>";r+="</tr>";}
r+="<tr>";r+="  <td colspan='3' style=\"width: "+w+"px; background-color: #"+color+"; "+((h>0)?"height:"+h+"px;":"")+"\">"+body+"</td>";r+="</tr>";r+="<tr>";r+="  <td style=\"width:5px; height:5px; background-image: url(images/angle_bl_"+color+".gif); background-repeat: no-repeat;\"></td>";r+="  <td style=\"width: "+(w-10)+"px; height:5px; background-color: #"+color+"\"></td>";r+="  <td style=\"width:5px; height:5px; background-image: url(images/angle_br_"+color+".gif); background-repeat: no-repeat;\"></td>";r+="</tr>";r+="</TABLE>";return r;}
this.init();}
function comments_get(){if(get_element(this.inner_status)){innerHTML(this.inner_status,"Φόρτωση σχολίων, παρακαλώ περιμένετε...");}
this.loaded=false;var a=new PHP_Serializer();var b=a.serialize(this.to_send());var what_to_do=new Object();what_to_do.callback=do_comments_get;what_to_do.extra_data=this;x_get_comments(b,what_to_do);}
function do_comments_get(that,aaa){var b=that;if(b["status"]==1){aaa.loaded=true;aaa.load(b["data"]);if(get_element(aaa.inner_status)){innerHTML(aaa.inner_status,"Τα σχόλια φορτώθηκαν&nbsp;");}}
else{aaa.loaded=true;}
aaa.after_get();handle_status(b["status"],b["mesg"]);}
function comments_show(){if(innerHTML(this.inner,this.draw())){show(this.inner);}}
function comments_draw(){var table="";table+="<TABLE border='0' width='100%' cellpadding='0' cellspacing='0'>";if(this.show_label){table+="<tr><td class='big pink'>ΣΧΟΛΙΑ ΑΝΑΓΝΩΣΤΩΝ</td></tr>";table+="<tr><td style='height: 11px'></td></tr>";}
if(this.show_load_ctl){table+="<tr><td align='center'><span onclick='"+this.name+".get()' class='link border'>Φόρτωση</span></td><tr>";}
if(this.set.length==0){if(this.loaded){table+="<tr><td class='center italic darkgrey bg_lightgrey' style='padding: 15px'>Δεν υπάρχουν σχόλια<br></td></tr>";table+="<tr><td style='height: 4px;'></td></tr>";}
else{table+="<tr><td class='center italic darkgrey'>Πατήστε «Φόρτωση» για να φορτώσετε, προς διαχείριση, τα τυχόν υπάρχοντα σχόλια για αυτήν την γλωσσική εκδοχή του άρθρου<br></td></tr>";}}
j=0;var cl1="";var cl2="";for(var i in this.set){if((this.show_deactive&&this.set[i].status=='deactive')||this.set[i].status=='active'){cl1="bg_lightgrey";cl2="bg_white";if((j++)%2==0){cl1="bg_grey";cl2="bg_lightgrey";}
table+="<tr><td id='"+this.set[i].inner+"'>"+this.set[i].draw(cl1,cl2)+"</td></tr>";}}
var show_add=true;if(this.set[i]){if(this.set[i].id=="new"){show_add=false;}}
if(show_add){table+="<tr><td style='height: 6px;'></td></tr>";table+="<tr><td><div onclick='"+this.name+".add();"+this.name+".show();' style='width: 125px; height: 18px; padding: 0px; margin: 0px; padding-left: 5px; font-size: 12px; text-align: left; vertical-align: middle; cursor: pointer;' class='white bg_grey border_grey' onmouseover=\"this.className='white bg_darkgrey border_darkgrey';\" onmouseout=\"this.className='white bg_grey border_grey';\">Προσθήκη σχολίου</div></td><tr>";}
table+="</TABLE>";table+="<div id='"+make_name(this.name)+"_edit_inner' class='m'></div>";table+="<div id='"+this.inactive_inner+"' class='m' style='display: none;'></div>";return table;}
function Atomo(name,parent){this.name=name;this.parent=parent;this.inner=make_name(this.name)+"_inner";this.temp_inner=make_name(this.name)+"_temp_inner";this.inactive_inner=make_name(this.name)+"_inactive_inner";this.email_inner_status=make_name(this.name)+"_email_inner_status";this.un_inner_status=make_name(this.name)+"_un_inner_status";this.inner_status=make_name(this.name)+"_inner_status";this.inner_statuses=make_name(this.name)+"_inner_statuses";this.inner_types=make_name(this.name)+"_inner_types";this.forma=make_name(this.name)+".forma";this.show_delete_button=true;this.to_show_cm=true;this.to_show_close=false;this.to_show_avatar=true;this.to_show_synergatis=false;this.init=at_init;this.load=at_load;this.changed=function(){return true;};this.to_send=at_to_send;this.get_by_id=at_get_by_id;this.after_get_by_id=function(){};;this.can_save=at_can_save;this.prepare_save=at_prepare_save;this.can_save=at_can_save;this.save=at_save;this.del=function(){if(confirm("Σίγουρα θέλετε να σβήσετε τον χρήστη;")){this.status="deactive";this.save()}};this.after_save=function(){};this.show=at_show;this.draw=at_draw;this.draw_edit=at_draw;this.draw_titlos=at_draw_titlos;this.show_statuses=function(){innerHTML(this.inner_statuses,this.draw_statuses());};this.draw_statuses=at_draw_statuses;this.show_types=function(){innerHTML(this.inner_types,this.draw_types());};this.draw_types=at_draw_types;this.enableDesignMode=function(){};this.show_status=at_show_status;this.hide_status=function(){hide(this.temp_inner);};this.check_email=at_check_email;this.after_check_email=at_after_check_email;this.check_un=at_check_un;this.after_check_un=at_after_check_un;this.draw_forgot_password=function(width){var w=(width)?width:631;var table="";table+="<FORM name='"+make_name(this.name)+".forma' style='margin:0px; padding:0px; border: 3px solid white;' action=''>";table+="<TABLE border='0' style='font-size: 12px;width: "+w+"px;' cellpadding='0' cellspacing='0' class='white bg_darkgrey'>";table+="<tr><td style='padding: 10px;'>συμπληρώστε τη ηλ. διεύθυνση του ταχυδρομείου σας (e-mail) <INPUT type='text' value='' name='"+make_name(this.name)+"_email_un' style='width: 185px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\"this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\"></td>";table+="<td style='width: 80px; vertical-align: middle; text-align: center;' class='bg_black'>";table+="<TABLE border='0' width='100%' style='margin: auto;' cellpadding='2' cellspacing='2'>";table+="<tr><td><INPUT type='button' name='"+make_name(this.name)+".send_ctl' value='αποστολή' onclick='"+this.name+".forgot_password(this);hide("+this.name+".inner);"+this.name+".after_close();' class='bttn_64_18 white bg_darkgrey border_darkgrey' onmouseover=\"this.className='bttn_64_18 white bg_grey border_darkgrey';\" onmouseout=\"this.className='bttn_64_18 white bg_darkgrey border_darkgrey';\"></td></tr>";table+="<tr><td><INPUT type='button' name='"+make_name(this.name)+".close_ctl' value='κλείσιμο' onclick='hide("+this.name+".inner);"+this.name+".after_close();' class='bttn_64_18 white bg_darkgrey border_darkgrey' onmouseover=\"this.className='bttn_64_18 white bg_grey border_darkgrey';\" onmouseout=\"this.className='bttn_64_18 white bg_darkgrey border_darkgrey';\"></td></tr>";table+="</TABLE>";table+="</td></tr>";table+="</TABLE>";table+="</FORM>";return table;}
this.forgot_password=function(that){var email_un="";if(typeof(document.forms[this.forma])!="undefined"){email_un=e(trim(document.forms[this.forma][make_name(this.name)+"_email_un"].value));}
if(d(email_un)!=""){that.disabled=true;var text_status="γίνετε αποστολή...";innerHTML(this.inner_status,text_status);this.show_status(text_status);to_send=new Array();to_send["email_un"]=email_un;var a=new PHP_Serializer();var b=a.serialize(to_send);var what_to_do=new Object();what_to_do.callback=do_forgot_password;what_to_do.extra_data=this;x_password_recovery(b,what_to_do);}}
this.show_inactive=function(){if(get_element(this.inner)){var p=getElementPosition(this.inner);innerHTML(this.inactive_inner,"<table style='width: "+p.width+"px; height: "+p.height+"px' class='border bg_black opac60'><tr><td align='center' valign='middle' class='bold white'>...</td></tr></table>");show(this.inactive_inner,p.left,p.top);}}
this.hide_inactive=function(){hide(this.inactive_inner)}
this.get_personal_info=function(type,gl){type=(type=="eponymo"||type=="onoma"||type=="nickname")?type:"nickname";gl=(gl)?gl:'el';var r="";for(var i in gls){if(gls[i].digramma==gl){eval("r=this.set[i]."+type+";");}}
return r;}
this.after_close=function(){}
this.init();}
function do_forgot_password(that,aaa){var b=that;if(b["status"]==1){innerHTML(aaa.inner_status,"Σας αποστάλθηκαι γράμμα με οδηγίες στο δηλωμένο ηλ.ταχυδρομείο. Διαβάστε το.&nbsp;");}
else if(b["status"]==0){innerHTML(aaa.inner_status,"Υπήρξε πρόβλημα, δοκιμάστε ξανά");}
else{innerHTML(aaa.inner_status,"Δεν υπάρχει χρήστης με τέτοια ηλ διεύθυνση ταχυδρομείου ή όνομα χρήστη, μπορείτε να κάντε εγγραφή με αυτά τα στοιχεία");}
hide(aaa.inner);aaa.hide_status();handle_status(b["status"],b["mesg"]);}
function at_init(){this.id="new";this.email="";this.un="";this.pw="";this.status="pending";this.type="reader";this.inserted="";this.modified="";this.set=new Array();for(var i in gls){this.set[i]=new Object();this.set[i].eponymo="";this.set[i].onoma="";this.set[i].nickname="";this.set[i].gl=gls[i].digramma;if(gls[i].digramma=='el'){this.default_gl_i=i;}};this.eponymo="";this.onoma="";this.nickname="";this.birthdate="";this.avatar_ei_id="";this.avatar_img=new Object();this.avatar_img.name=this.name+".avatar_img";this.avatar_img.parent=this;this.avatar_img.fileupload_inner="fileupload_inner";this.avatar_img.maxW="100";this.avatar_img.maxH="90";this.avatar_img.strict_dimentions=true;this.avatar_img.addImage=RTE_addImage;this.avatar_img.hide_Image=RTE_hide_Image;this.avatar_img.after_save=function(){this.parent.prepare_save();this.parent.show();};this.comment_master=false;this.sex="";this.synergatis=false;this.statuses=new Array();this.types=new Array();this.to_show_statuses=true;this.to_show_types=true;this.email_is_used=false;this.un_is_used=false;this.email_checked=false;this.un_checked=false;}
function at_load(what){this.id=e(what["id"]);this.email=e(what["email"]);this.un=e(what["un"]);this.pw=e(what["pw"]);this.status=e(what["status"]);this.type=e(what["type"]);this.inserted=e(what["inserted"]);this.modified=e(what["modified"]);for(var i in this.set){this.set[i].eponymo=e(what["eponymo_"+this.set[i].gl]);this.set[i].onoma=e(what["onoma_"+this.set[i].gl]);this.set[i].nickname=e(what["nickname_"+this.set[i].gl]);}
this.eponymo=e(what["eponymo"]);this.onoma=e(what["onoma"]);this.nickname=e(what["nickname"]);this.birthdate=e(what["birthdate"]);this.avatar_ei_id=e(what["avatar_ei_id"]);this.comment_master=(e(what["comment_master"])=="true")?true:false;this.sex=e(what["sex"]);this.synergatis=(e(what["synergatis"])=="true")?true:false;}
function at_to_send(){var toret=new Array();toret["id"]=this.id;toret["email"]=this.email;toret["un"]=this.un;toret["pw"]=this.pw;toret["status"]=this.status;toret["type"]=this.type;toret["inserted"]=this.inserted;toret["modified"]=this.modified;toret["set"]=new Array();for(var i in this.set){toret["set"][i]=new Array();toret["set"][i]["gl"]=this.set[i].gl
toret["set"][i]["eponymo"]=this.set[i].eponymo;toret["set"][i]["onoma"]=this.set[i].onoma;toret["set"][i]["nickname"]=this.set[i].nickname;}
toret["birthdate"]=this.birthdate;toret["avatar_ei_id"]=this.avatar_ei_id;toret["comment_master"]=(this.comment_master)?"true":"false";toret["sex"]=this.sex;toret["synergatis"]=(this.synergatis)?"true":"false";return toret;}
function at_get_by_id(){var text_status="Φορτώνονται στοιχεία για τον χρήστη με αύξων αριθμό: &nbsp;"+this.id
innerHTML(this.inner_status,text_status);this.show_status(text_status);var tosend=new Array();tosend["id"]=this.id;tosend["gl"]="el";var a=new PHP_Serializer();var b=a.serialize(tosend);var what_to_do=new Object();what_to_do.callback=do_at_get_by_id;what_to_do.extra_data=this;x_get_atomo(b,what_to_do);}
function do_at_get_by_id(that,aaa){var b=that;if(b["status"]==1){aaa.load(b["data"]);aaa.after_get_by_id();innerHTML(aaa.inner_status,"Φορτώθηκαν τα στοιχεία του χρήστη με αύξων αριθμό:&nbsp;"+aaa.id);}
aaa.hide_status();handle_status(b["status"],b["mesg"]);}
function at_can_save(){if(!this.email_checked){this.after_check_email=function(){if(this.email_is_used){innerHTML(this.email_inner_status,"Το ηλ. ταχυδρομείο που εισάγατε είναι δηλωμένο ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_email"].focus();document.forms[this.forma][make_name(this.name)+"_email"].value="";}
else{innerHTML(this.email_inner_status,"ΟΚ");}
this.save();this.after_check_email=at_after_check_email;}
this.check_email();return false;}
if(!this.un_checked){this.after_check_un=function(){if(this.un_is_used){innerHTML(this.un_inner_status,"Το όνομα χρήστη υπάρχει ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_un"].focus();}
else{innerHTML(this.un_inner_status,"ΟΚ");}
this.save();this.after_check_un=at_after_check_un;}
this.check_un();return false;}
if(trim(this.email)==""){innerHTML(this.inner_status,"Εισάγεται την διεύθυνση ηλεκτρονικού ταχυδρομείου, είναι απαραίτητο πεδίο&nbsp;");document.forms[this.forma][make_name(this.name)+"_email"].focus();return false}
if(this.email_is_used){innerHTML(this.inner_status,"Το ηλ. ταχυδρομείο που εισάγατε είναι δηλωμένο ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_email"].focus();return false;}
if(this.un_is_used){innerHTML(this.inner_status,"Το όνομα χρήστη υπάρχει ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_un"].focus();return false;}
return true;}
function at_prepare_save(){if(typeof(document.forms[this.forma])!="undefined"){this.email=e(document.forms[this.forma][make_name(this.name)+"_email"].value);this.un=e(document.forms[this.forma][make_name(this.name)+"_un"].value);this.pw=e(document.forms[this.forma][make_name(this.name)+"_pw"].value);for(var i in this.set){this.set[i].eponymo=e(document.forms[this.forma][make_name(this.name)+"_eponymo_"+i].value);this.set[i].onoma=e(document.forms[this.forma][make_name(this.name)+"_onoma_"+i].value);this.set[i].nickname=e(document.forms[this.forma][make_name(this.name)+"_nickname_"+i].value);}
this.birthdate=e(document.forms[this.forma][make_name(this.name)+"_birthdate"].value);if(this.avatar_img.id){this.avatar_ei_id=this.avatar_img.id+"_"+this.avatar_img.md_5;}}}
function at_save(){this.show_inactive();this.prepare_save();if(this.can_save()){var text_status="Τα στοιχεία σώζονται";innerHTML(this.inner_status,text_status);this.show_status(text_status);var a=new PHP_Serializer();var b=a.serialize(this.to_send());var what_to_do=new Object();what_to_do.callback=do_save_at;what_to_do.extra_data=this;x_save_atomo(b,what_to_do);this.email_checked=false;this.un_checked=false;}
else{this.hide_inactive();}}
function do_save_at(that,aaa){var b=that;if(b["status"]==1){aaa.load(b["data"]);aaa.after_save();innerHTML(aaa.inner_status,"Τα στοιχεία αποθηκεύτηκαν&nbsp;");}
else if(b["status"]==0){innerHTML(aaa.inner_status,"<span style=\"color: rgb(204, 0, 0);\">Πρόβλημα κατά την αποθήκευση, η διεύθυνσή ηλ. ταχυδρομίου είναι κενή, κάτι το οποίο δεν μπορεί να είναι .</span>&nbsp;");}
else{innerHTML(aaa.inner_status,"<span style=\"color: rgb(204, 0, 0);\">Πρόβλημα κατά την αποθήκευση&nbsp;</span>");}
aaa.hide_status();aaa.hide_inactive();handle_status(b["status"],b["mesg"]);}
function at_draw_titlos(){var toret=""
if(this.id=="new"){toret+="New atomo ";}
toret+=d(this.email);return toret;}
function at_show(){if(innerHTML(this.inner,this.draw())){show(this.inner);}}
function at_draw(width){var w=(width)?width:631;var table="";table+="<FORM name='"+make_name(this.name)+".forma' style='margin:0px; padding:0px; border: 3px solid white;' action=''>";table+="<TABLE border='0' style='width: "+w+"px;' class='bg_darkgrey' cellpadding='0' cellspacing='0'>";table+="<tr><td style='padding: 10px;'>";table+="<TABLE border='0' width='100%' cellpadding='1' cellspacing='1' class='white' style='font-size: 12px;'>";table+="<tr><td colspan='2' style='font-size: 14px;' class='black'>στοιχεία εγγραφής</td></tr>";table+="<tr><td style='width: 190px;'>διεύθυνσή ηλ. ταχυδρομείου</td><td><INPUT type='text' value='"+d(this.email)+"' name='"+make_name(this.name)+"_email' style='width: 214px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\""+this.name+".check_email(); this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\"><span id='"+this.email_inner_status+"'></span></td></tr>";table+="<tr><td>όνομα χρήστη</td><td><INPUT type='text' value='"+d(this.un)+"' name='"+make_name(this.name)+"_un' style='width: 214px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\""+this.name+".check_un(); this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\"><span id='"+this.un_inner_status+"'></span></td></tr>";table+="<tr><td>κωδικός πρόσβασης</td><td><INPUT type='password' value='"+d(this.pw)+"' name='"+make_name(this.name)+"_pw' style='width: 214px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\"this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\" ></td></tr>";var th="<td style='font-size: 14px;' class='darkgrey'><!--μετάφραση στα&nbsp;"+gls[this.default_gl_i].show_string+"//--></td>";var teponymo="<td><INPUT type='text' value='"+d(this.set[this.default_gl_i].eponymo)+"' name='"+make_name(this.name)+"_eponymo_"+this.default_gl_i+"' style='width: 254px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\"this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\" ></td>";var tonoma="<td><INPUT type='text' value='"+d(this.set[this.default_gl_i].onoma)+"' name='"+make_name(this.name)+"_onoma_"+this.default_gl_i+"' style='width: 254px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\"this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\" ></td>";var tnickname="<td><INPUT type='text' value='"+d(this.set[this.default_gl_i].nickname)+"' name='"+make_name(this.name)+"_nickname_"+this.default_gl_i+"' style='width: 254px; height: 18px; text-align: left; vertical-align: middle; padding: 0px; margin: 0px;' class='big grey bg_white border_darkgrey' onblur=\"this.className='darkgrey big bold bg_white border_lightgrey';\" onfocus=\"this.className='black big bold bg_white border_lightgrey';\" ></td>";for(var i in this.set){if(i!=this.default_gl_i){th+="<td></td><td style='font-size: 14px; color: #66696f;'>μετάφραση στα&nbsp;"+gls[i].show_string+"</td>"
var beponymo="";var bonoma="";var bnickname="";if(eval("(typeof(translate_"+this.set[this.default_gl_i].gl+"_"+this.set[i].gl+")=='function')?true:false;")){beponymo="<td><input type='button' value='μετάφραση' title='μεταγλώττιση βάση ΕΛΟΤ 743»' onclick=\"this.form['"+make_name(this.name)+"_eponymo_"+i+"'].value=translate_"+this.set[this.default_gl_i].gl+"_"+this.set[i].gl+"(this.form['"+make_name(this.name)+"_eponymo_"+this.default_gl_i+"'].value)\" style='padding: 0px; margin: 0px; border: 0px; background-color: transparent;' class='bttn_90 bttn_90_494a4e grey bold' onmouseover=\"this.className='bttn_90 bttn_90_25272b white bold';\" onmouseout=\"this.className='bttn_90 bttn_90_494a4e grey bold';\"></td>";bonoma="<td><input type='button' value='μετάφραση' title='μεταγλώττιση βάση ΕΛΟΤ 743»' onclick=\"this.form['"+make_name(this.name)+"_onoma_"+i+"'].value=translate_"+this.set[this.default_gl_i].gl+"_"+this.set[i].gl+"(this.form['"+make_name(this.name)+"_onoma_"+this.default_gl_i+"'].value)\" style='padding: 0px; margin: 0px; border: 0px; background-color: transparent;' class='bttn_90 bttn_90_494a4e grey bold' onmouseover=\"this.className='bttn_90 bttn_90_25272b white bold';\" onmouseout=\"this.className='bttn_90 bttn_90_494a4e grey bold';\"></td>";bnickname="<td><input type='button' value='μετάφραση' title='μεταγλώττιση βάση ΕΛΟΤ 743»' onclick=\"this.form['"+make_name(this.name)+"_nickname_"+i+"'].value=translate_"+this.set[this.default_gl_i].gl+"_"+this.set[i].gl+"(this.form['"+make_name(this.name)+"_nickname_"+this.default_gl_i+"'].value)\" style='padding: 0px; margin: 0px; border: 0px; background-color: transparent;' class='bttn_90 bttn_90_494a4e grey bold' onmouseover=\"this.className='bttn_90 bttn_90_25272b white bold';\" onmouseout=\"this.className='bttn_90 bttn_90_494a4e grey bold';\"></td>";}
teponymo+=""+beponymo+"<td><INPUT type='text' value='"+d(this.set[i].eponymo)+"' name='"+make_name(this.name)+"_eponymo_"+i+"' class='bold' style='font-size: 14px; padding: 2px; width: 214px; height: 20px;border: 0px; background-color: transparent; background-image: url(images/inpt_bckgrnd_214.gif); background-repeat: no-repeat;'></td>";tonoma+=""+bonoma+"<td><INPUT type='text' value='"+d(this.set[i].onoma)+"' name='"+make_name(this.name)+"_onoma_"+i+"' class='bold' style='font-size: 14px; padding: 2px; width: 214px; height: 20px;border: 0px; background-color: transparent; background-image: url(images/inpt_bckgrnd_214.gif); background-repeat: no-repeat;'></td>";tnickname+=""+bnickname+"<td><INPUT type='text' value='"+d(this.set[i].nickname)+"' name='"+make_name(this.name)+"_nickname_"+i+"' class='bold' style='font-size: 14px; padding: 2px; width: 214px; height: 20px;border: 0px; background-color: transparent; background-image: url(images/inpt_bckgrnd_214.gif); background-repeat: no-repeat;'></td>";}}
table+="<tr><td colspan='2'>";table+="<TABLE border='0' width='100%' cellpadding='1' cellspacing='1' class='white'>";table+="<tr><td style='width: 150px; font-size: 14px;' class='black'>στοιχεία χρήστη</td>"+th+"</tr>";table+="<tr><td style=''>όνομα</td>"+tonoma+"</tr>";table+="<tr><td>επώνυμο</td>"+teponymo+"</tr>";table+="<tr><td>Ψευδώνυμο</td>"+tnickname+"</tr>";table+="</TABLE>";table+="</td></tr>";table+="<tr><td>ημερομηνία γεννήσεως</td><td><input type='text' value='"+d(this.birthdate.substr(0,10))+"' readonly name='"+make_name(this.name)+"_birthdate' class='bold' style='font-size: 14px; padding: 2px; width: 106px; height: 20px;border: 0px; background-color: transparent;'><input type='button' value='ημερολόγιο' onclick=\"displayCalendar(this.form."+make_name(this.name)+"_birthdate,\'yyyy-mm-dd\',this)\" style='width: 108px; height: 22px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle;' class='white bg_black border_grey' onmouseover=\"this.className='white bg_grey border_grey';\" onmouseout=\"this.className='white bg_black border_grey';\"></td></tr>";if(this.to_show_avatar){table+="<tr><td valign='top'>εικόνα (avatar)</td><td>";table+="<div id='addimage_"+make_name(this.avatar_img.name)+"' onClick=\""+this.avatar_img.name+".addImage('show');\" style='width: 211px; height: 18px; padding: 0px; margin: 0px; padding-left: 5px; font-size: 12px; text-align: left; vertical-align: middle; cursor: pointer;' class='white bg_black border_grey' onmouseover=\"this.className='white bg_grey border_grey';\" onmouseout=\"this.className='white bg_black border_grey';\">Προσθήκη εικόνας</div>";if(this.avatar_ei_id!=""){var tmp=this.avatar_ei_id.split("_");if(tmp.length=2){this.avatar_img.id=tmp[0];this.avatar_img.md_5=tmp[1];table+="<table border='0' cellpadding='1' cellspacing='1' class='border_grey'><tr><td><img src='image.php?id="+this.avatar_img.id+"&md_5="+this.avatar_img.md_5+"' alt='"+d(this.un)+"' class='border_lightgrey' ></td></tr></table>";}}
table+="</td></tr>";}
if(this.to_show_cm){table+="<tr><td>Να λαμβάνει ενημερωτικά e-mail όταν καταχωρείται καινούριο σχόλιο; (comment master)</td><td><input type='checkbox' name='"+make_name(this.name)+"_comment_master' class='big border_grey' onclick='"+this.name+".comment_master=this.checked;' "+((this.comment_master)?"checked":"")+"></td></tr>";}
table+="<tr><td>Φύλλο</td><td><table border='0' cellpadding='0' cellspacing='0'><tr><td><input type='checkbox' name='"+make_name(this.name)+"_sex' class='' onclick=\""+this.name+".sex=((this.checked)?'male':'');\" "+((this.sex=='male')?"checked":"")+">άρρεν</td><td><input type='checkbox' name='"+make_name(this.name)+"_sex' class='' onclick=\""+this.name+".sex=((this.checked)?'female':'');\" "+((this.sex=='female')?"checked":"")+">θήλυ&nbsp;</td></tr></table></td></tr>";if(this.to_show_synergatis&&(this.type=="admin"||this.type=="writer")){table+="<tr><td>Μόνιμος συνεργάτης</td><td><input type='checkbox' name='"+make_name(this.name)+"_synergatis' class='big border_grey' onclick='"+this.name+".synergatis=this.checked;' "+((this.synergatis)?"checked":"")+"></td></tr>";}
table+="<tr><td colspan='2' id='"+this.inner_statuses+"'>"+this.draw_statuses()+"</td></tr>";table+="<tr><td colspan='2' id='"+this.inner_types+"'>"+this.draw_types()+"</td></tr>";if(this.id!="new"){table+="<tr><td colspan='2' class='small'><span class='lightkgrey'>δημιουργήθηκε&nbsp;</span> <i>"+d(this.inserted)+"</i> <span class='lightkgrey'>τροποποιήθηκε&nbsp;</span>  <i>"+d(this.modified)+"</i></td><tr>";}
table+="</TABLE></td>";table+="<td style='width: 112px; vertical-align: top; text-align: center; padding-top: 10px;' class='bg_black'>";table+="<TABLE border='0' width='100%' style='margin: auto;' cellpadding='2' cellspacing='2'>";table+="<tr><td><INPUT type='button' name='"+make_name(this.name)+".save_ctl' value='αποθήκευση' onclick='"+this.name+".save();"+this.name+".after_close();' style='width: 108px; height: 22px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle;' class='white bg_darkgrey border_darkgrey' onmouseover=\"this.className='white bg_grey border_darkgrey';\" onmouseout=\"this.className='white bg_darkgrey border_darkgrey';\"></td></tr>";if(this.show_delete_button&&this.id!="new"){table+="    <tr><td><INPUT type='button' name='"+make_name(this.name)+".delete_ctl' value='διαγραφή' onclick='"+this.name+".del();"+this.name+".after_close();' style='width: 108px; height: 22px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle;' class='white bg_darkgrey border_darkgrey' onmouseover=\"this.className='white bg_grey border_darkgrey';\" onmouseout=\"this.className='white bg_darkgrey border_darkgrey';\"></td></tr>";}
if(this.to_show_close){table+="    <tr><td><INPUT type='button' name='"+make_name(this.name)+".close_ctl' value='κλείσιμο' onclick='hide("+this.name+".inner);hide("+this.avatar_img.name+".fileupload_inner);"+this.name+".after_close();' style='width: 108px; height: 22px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle;' class='white bg_darkgrey border_darkgrey' onmouseover=\"this.className='white bg_grey border_darkgrey';\" onmouseout=\"this.className='white bg_darkgrey border_darkgrey';\"></td></tr>";}
table+="</TABLE>";table+="</td></tr>";table+="</TABLE>";table+="</FORM>";return table;}
function at_draw_statuses(){var toret="";toret+="<TABLE border='0' style='margin: auto;' cellpadding='0' cellspacing='2'><tr>"
if(this.parent.statuses&&this.to_show_statuses){for(var i in this.parent.statuses){var onclick=this.name+".status="+this.parent.name+".statuses['"+i+"'].id;"+this.name+".show_statuses()";var cl="bg_black";if(this.status==this.parent.statuses[i].id){onclick="";cl="bold bg_grey bg_"+this.parent.statuses[i].color;}
toret+="<td><div onclick=\""+onclick+"\" style='width: 112px; height: 18px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle; cursor: pointer;' class='"+cl+" white border_lightgrey' onmouseover=\"this.className='black bg_lightgrey border_lightgrey';\" onmouseout=\"this.className='"+cl+" white border_lightgrey';\">"+this.parent.statuses[i].onoma+"</div></td>";}}
toret+="</tr></TABLE>";return toret}
function at_draw_types(){var toret="";toret+="<TABLE border='0' style='margin: auto;' cellpadding='0' cellspacing='2'><tr>"
if(this.parent.types&&this.to_show_types){for(var i in this.parent.types){var onclick=this.name+".type="+this.parent.name+".types['"+i+"'].id;"+this.name+".show_types()";var cl="bg_black";if(this.type==this.parent.types[i].id){onclick="";cl="bold bg_grey bg_"+this.parent.types[i].color;}
toret+="<td><div onclick=\""+onclick+"\" style='width: 112px; height: 18px; padding: 0px; margin: 0px; padding-bottom: 3px; padding-left: 5px; font-size: 14px; text-align: left; vertical-align: middle; cursor: pointer;' class='"+cl+" white border_lightgrey' onmouseover=\"this.className='black bg_lightgrey border_lightgrey';\" onmouseout=\"this.className='"+cl+" white border_lightgrey';\">"+this.parent.types[i].onoma+"</div></td>";}}
toret+="</tr></TABLE>";return toret}
function at_show_status(text){if(this.parent&&this.parent.parent){var p=getElementPosition(this.parent.parent.inner);innerHTML(this.temp_inner,"<table style='width: "+p.width+"px; height: "+p.height+"px' class='border bg_black opac60'><tr><td style='text-align: center;vertical-align: middle;' class='bold white'>"+text+"</td></tr></table>");show(this.temp_inner,p.left,p.top);}}
function at_check_email(){this.email=trim(document.forms[this.forma][make_name(this.name)+"_email"].value);if(is_email(this.email)){var tosend=new Array();tosend["id"]=this.id;tosend["email"]=this.email;var a=new PHP_Serializer();var b=a.serialize(tosend);var what_to_do=new Object();what_to_do.callback=do_at_check_email;what_to_do.extra_data=this;x_check_xr_email(b,what_to_do);var text_status="Γίνετε έλεγχος για την μοναδικότητα του ηλ. ταχυδρομείου";innerHTML(this.email_inner_status,text_status);this.show_status(text_status);}
else{if(this.email!=""){innerHTML(this.email_inner_status,"<span style=\"color: rgb(204, 0, 0);\">Η διεύθυνση του ηλ. ταχυδρομείου δεν πληρεί την προβλεπόμενη μορφή.</span>");}
else{innerHTML(this.email_inner_status,"Η διεύθυνση του ηλ. ταχυδρομείου είναι κενή. Δεν μπορεί να είναι κενή. Συμπληρώστε την, είναι αναγκαίο πεδίο.");}
document.forms[this.forma][make_name(this.name)+"_email"].focus();}}
function do_at_check_email(that,aaa){var b=that;if(b["status"]==1){aaa.email_is_used=true;}
else{aaa.email_is_used=false;}
aaa.email_checked=true;aaa.after_check_email();aaa.hide_status();handle_status(b["status"],b["mesg"]);}
function at_after_check_email(){if(this.email_is_used){innerHTML(this.email_inner_status,"Το ηλ. ταχυδρομείο που εισάγατε είναι δηλωμένο ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_email"].focus();document.forms[this.forma][make_name(this.name)+"_email"].value="";}
else{innerHTML(this.email_inner_status,"ΟΚ");}
this.email_checked=false;}
function at_check_un(){this.un=e(trim(document.forms[this.forma][make_name(this.name)+"_un"].value));if(this.un!=""){var tosend=new Array();tosend["id"]=this.id;tosend["un"]=this.un;var a=new PHP_Serializer();var b=a.serialize(tosend);var what_to_do=new Object();what_to_do.callback=do_at_check_un;what_to_do.extra_data=this;x_check_xr_un(b,what_to_do);var text_status="Γίνετε έλεγχος για την μοναδικότητα του ονόματος χρήστη";innerHTML(this.un_inner_status,text_status);this.show_status(text_status);}}
function do_at_check_un(that,aaa){var b=that;if(b["status"]==1){aaa.un_is_used=true;}
else{aaa.un_is_used=false;}
aaa.un_checked=true;aaa.after_check_un();aaa.hide_status();handle_status(b["status"],b["mesg"]);}
function at_after_check_un(){if(this.un_is_used){innerHTML(this.un_inner_status,"Το όνομα χρήστη υπάρχει ήδη. Δοκιμάστε κάποιο άλλο");document.forms[this.forma][make_name(this.name)+"_un"].focus();}
else{innerHTML(this.un_inner_status,"ΟΚ");}
this.un_checked=false}function Mailto(name,parent){this.name=name;this.parent=parent;this.inner=make_name(this.name)+"_inner";this.inner_status=make_name(this.name)+"_inner_status";this.inner_edit=make_name(this.name)+"_inner_edit";this.confirm_img_inner=make_name(this.name)+"_confirm_img_inner";this.inactive_inner=make_name(this.name)+"_inactive_inner";this.dock_inner=make_name(this.name)+"_dock_inner";this.init=function(){this.email="";this.xr_id="";this.cs_id="";this.cs="";};this.load=function(what){this.email=e(what["email"]);};this.to_send=function(){var toret=new Array();toret["xr_id"]=this.xr_id;toret["cs_id"]=this.cs_id;toret["cs"]=this.cs;return toret;};this.can_get=function(that){if(d(this.cs)==""||d(this.cs).length!=5){alert("Ο κωδικός επιβεβαίωσης δεν μπορεί να είναι κενός ή μικρότερος των 5 χαρακτήρων");if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){that.form[make_name(this.name)+"_cs"].focus();}}
return false;}
return true;}
this.prepare_get=function(that){if(typeof(that)!="undefined"){if(typeof(that.form)!="undefined"){this.cs=e(trim(that.form[make_name(this.name)+"_cs"].value));}}}
this.get=function(that){this.show_inactive();this.prepare_get(that);if(this.can_get(that)){if(get_element(this.inner_status)){innerHTML(this.inner_status,"φορτώνετε η διεύθυνσή του ηλ. ταχυδρομείου");}
var a=new PHP_Serializer();var b=a.serialize(this.to_send());var what_to_do=new Object();what_to_do.callback=do_get_mailto;what_to_do.extra_data=this;x_get_email(b,what_to_do);}
else{this.hide_inactive()}}
this.after_get=function(){this.show()};this.show=function(){if(this.email==""){if(!this.listenerAttached){this.listenerAttached=true;my_objects[my_objects.length]=this;}
var p=getElementPosition(this.dock_inner);if(innerHTML(this.inner,this.draw())){show(this.inner,parseInt(p.left+p.width/2),parseInt(p.top+p.height));var p1=getElementPosition(this.inner);show(this.inner,parseInt(p.left+p.width/2-p1.width/2),parseInt(p.top+p.height));document.forms["forma_"+make_name(this.name)+"_mailto_"+this.xr_id][make_name(this.name)+"_cs"].focus();}}
else{this.hide_inactive();hide(this.inner);window.open("mailto:"+this.email,"_self","");}}
this.draw=function(){var table="";table+="<FORM name='forma_"+make_name(this.name)+"_mailto_"+this.xr_id+"' id='forma_mailto_"+this.xr_id+"_"+this.unique+"' style='padding: 0px; margin: 0px;'><TABLE border='0' width='100%' cellpadding='1' cellspacing='1' class='bg_white border_bold' align='center'>";table+="<tr><td valign='top' class='darkgrey italic'>Κωδικός επιβεβαίωσης, γράψτε τους χαρακτήρες που βλέπετε στην εικόνα</td><td></tr>";table+="<tr><td align='center'><TABLE border='0' cellpadding='0' cellspacing='0' ><tr><td><input type='text' name='"+make_name(this.name)+"_cs' style='width: 50px; height: 26px' class='border bigger bold red' maxlength='5' onkeyup='if(event.keyCode==13){"+this.name+".get(this);}'></td><td style='width: 5px;'></td><td id='"+this.confirm_img_inner+"'></td></tr></TABLE></td></tr>";this.get_confirm_img();table+="<tr><td align='center'><input type='button' name='"+make_name(this.name)+"_get_ctl' value='Επικοινωνήστε&nbsp;' onclick='"+this.name+".get(this);' class='small border'></td></tr>";table+="</TABLE></FORM>";return table;}
this.get_confirm_img=function(){if(get_element(this.confirm_img_inner)){innerHTML(this.confirm_img_inner,"φορτώνετε ο κωδικός επιβεβαίωσης");}
var a=new PHP_Serializer();var b=a.serialize();var what_to_do=new Object();what_to_do.callback=do_get_confirm_img;what_to_do.extra_data=this;x_make_confirm_string(b,what_to_do);}
this.show_inactive=function(){if(get_element(this.inner)){var p=getElementPosition(this.inner);innerHTML(this.inactive_inner,"<table style='width: "+p.width+"px; height: "+p.height+"px' class='border bg_black opac60'><tr><td align='center' valign='middle' class='bold white'>...</td></tr></table>");show(this.inactive_inner,p.left,p.top);}}
this.hide_inactive=function(){hide(this.inactive_inner)}
this.hide=function(e){var is_clicked_inside=false;var c=mouseCoords(e);var p=getElementPosition(this.inner);is_clicked_inside=((c.x>p.left)&&(c.x<p.left+p.width)&&(c.y>p.top)&&(c.y<p.top+p.height))?true:false;if(!is_clicked_inside){hide(this.inner);}}
this.init();}
function do_get_mailto(that,aaa){var b=that;if(b["status"]==1){aaa.load(b["data"]);aaa.after_get();}
else if(b["status"]==-2){alert("Πληκτρολογείστε τον κωδικό επιβεβαίωσης σωστά!");}
else{alert("Πρόβλημα κατά εισαγωγή στο σύστημα, ανανεώστε την σελίδα και ξαναδοκιμάστε");}
aaa.hide_inactive();handle_status(b["status"],b["mesg"]);}
function do_get_confirm_img(that,aaa){var b=that;if(b["status"]==1){aaa.cs_id=b["data"]["cs_id"];if(get_element(aaa.confirm_img_inner)){innerHTML(aaa.confirm_img_inner,"<img src='imgage_confirm.php?id="+aaa.cs_id+"' border='1' />");}}
handle_status(b["status"],b["mesg"]);}var a=new PHP_Serializer();function Chat(name,parent){this.name=name;this.parent=parent;this.inner_container=make_name(this.name)+"_inner_container";this.inner=make_name(this.name)+"_inner";this.status_inner=make_name(this.name)+"_status_inner";this.online_inner=make_name(this.name)+"_online_inner";this.chat_inner=make_name(this.name)+"_chat_inner";this.chat_dialog_transactions_inner=make_name(this.name)+"_chat_dialog_transactions_inner";this.counter_inner=make_name(this.name)+"_counter_inner";this.forma=make_name(this.name)+"_forma";this.auth=new Auth(this.name+".auth",this);this.auth.after_login=function(){this.parent.init();this.parent.show();setTimeout(this.name+".beacon()",6000000);};this.gl="el";this.online=new Object();this.online.name=this.name+".online";this.online.parent=this;this.online.set=new Array();this.online.count=0;this.online.limit1=0;this.online.limit2=10;this.online.draw_paging=main_draw_paging;this.A_xr=function(value){if(value!=null&&typeof(value)!="undefined"){this._A_xr=value;this.show_debug_info();}
return(this._A_xr!=null&&typeof(this._A_xr)!="undefined")?this._A_xr:"";}
this.A_xr_gl=function(value){if(value!=null&&typeof(value)!="undefined"){if(value==""||value=="el"||value=="en"){this._A_xr_gl=value;}
this.show_debug_info();}
return(this._A_xr_gl!=null&&typeof(this._A_xr_gl)!="undefined")?this._A_xr_gl:this.gl;}
this.change_auth_inner=true;this.init=function(){if(this.change_auth_inner){this.auth.inner=this.inner;}
this.A_xr("");this.A_xr_gl(this.gl);this.chat_channel("etetradio");}
this.do_heartbeat=function(value,init){if(value!=null&&typeof(value)!="undefined"){this._do_heartbeat=(value)?true:false;if(this._do_heartbeat){this.heartbeat(this._tmp_bc_id,init);}}
return this._do_heartbeat;}
this.heartbeat=function(bc_id,init){this.show_status("function: <b>heartbeat(bc_id="+bc_id+",init="+init+")</b>");if(this.do_heartbeat()){var tosend=new Array();tosend["xr_id"]=this.auth.xr.id;if(bc_id!=null&&typeof(bc_id)!="undefined"){tosend["bc_id"]=bc_id;}
if(init!=null&&typeof(init)!="undefined"){tosend["init"]=true;}
kd("cf.php?f=heartbeat&p="+a.serialize(tosend),function(g,aaa){aaa.process_heartbeat(g);},this);}
else{this._tmp_bc_id=null;if(bc_id!=null&&typeof(bc_id)!="undefined"){this._tmp_bc_id=bc_id;}}}
this.process_heartbeat=function(what){this.show_status("function: <b>process_heartbeat("+what+")</b>");var bc_id=null;if(what!=""){eval("what="+what);if(what!=false&&typeof(what)=="object"){bc_id=what["bc_id"];switch(what["meaning"]){case"etetradio_new_chat_message":this.extinguish_beacon(bc_id);this.get_chat(false);break;default:break;}}}
setTimeout(this.name+".heartbeat("+bc_id+")",5000);}
this.extinguish_beacon=function(bc_id){var tosend=new Array();tosend["bc_id"]=bc_id;kd("cf.php?f=extinguish_beacon&p="+a.serialize(tosend),function(g,aaa){},this);}
this.show_status=function(text){if(get_element(this.status_inner)){innerHTML(this.status_inner,text);}}
this.show_debug_info=function(){if(get_element(this.state_inner)){innerHTML(this.state_inner,"A_xr: <b>"+this.A_xr()+" "+this.A_xr_gl()+"</b> chat_channel: <b>"+this.chat_channel()+"</b>");}}
this.chat_channel=function(value){if(value!=null&&typeof(value)!="undefined"){this._chat_channel=value;if(get_element(this.chat_dialog_transactions_inner)){innerHTML(this.chat_dialog_transactions_inner,"");}
this.chat_dialog_transactions=new Array();this.last_dialog_transactions_id="-1";this.show_debug_info();}
return(this._chat_channel!=null&&typeof(this._chat_channel)!="undefined")?this._chat_channel:"etetradio";}
this.online.get=function(){var tosend=new Array();tosend["limit1"]=this.limit1;tosend["limit2"]=this.limit2;this.parent.show_wait(this.parent.online_inner);kd("cf.php?f=get_online_xr&gl="+this.parent.gl+"&p="+a.serialize(tosend),function(g,aaa){aaa.load(g);aaa.parent.show_online()},this);}
this.online.load=function(what){this.set=new Array();if(what!=""){eval("what="+what);for(var i in what["data"]){this.set[i]=new Object();this.set[i].xr_id=what["data"][i]["xr_id"];this.set[i].nickname=what["data"][i]["nickname"];this.set[i].busy=what["data"][i]["busy"];}
this.count=what["count"];}}
this.show_online=function(){innerHTML(this.online_inner,this.draw_online());}
this.draw_online=function(){var r="";r+="<div style='overflow: auto;'>"
for(var i in this.online.set){if(this.online.set[i].xr_id!=this.auth.xr.id){var add="class='big Alink' onclick='"+this.name+".invite("+this.online.set[i].xr_id+");'";if(this.online.set[i].busy){add="class='big darkgrey'";}
r+="<span "+add+">"+this.online.set[i].nickname+"</span></br>";}}
r+="</div>";if(this.online.count>this.online.limit2){r+=this.online.draw_paging();}
r+="<br /><input type='button' onclick='"+this.name+".online.get()' value='ποιοι είναι μέσα' class='border small center' />";return r;}
this.show=function(){if(this.auth.is_logged_in){this.init();var tmp=this.auth.xr.get_personal_info("nickname","el");if(trim(tmp)==""){tmp=this.auth.xr.un;}
this.A_xr(tmp);innerHTML(this.inner,"<div id='"+this.chat_inner+"'>"+this.draw_chat()+"</div>");this.do_heartbeat(true,true);this.get_chat(false);}
else{this.init();innerHTML(this.inner,"<div id='"+this.chat_inner+"'>"+this.draw_chat()+"</div>");this.do_heartbeat(false);this.get_chat(true);}}
this.show_chat=function(){innerHTML(this.chat_inner,this.draw_chat());}
this.draw_chat=function(){var r="";r+="<FORM name='"+this.forma+"' onsubmit='return false;' style='padding: 0px  3px; margin: 0px;' class='bg_lightgrey'>";r+="<TABLE border='0' style='width: 298px;' cellpadding='0' cellspacing='0' >";r+="<tr><td style='vertical-align: top;'><div style='overflow: auto; width: 296px; max-height: 130px; height: 130px; border: 0px solid #505050;' id='"+this.chat_dialog_transactions_inner+"' class='bg_white' title='εδώ εμφανίζονται τα μηνύματα με την χρονική σειρά: το πιο πρόσφατο μήνυμα είναι \nτο πρώτο πάνω'>"+this.draw_chat_dialog_transactions()+"</div></td></tr>";r+="<tr><td style='height: 2px;'></td></tr>";var readonly="";var title="Γράψτε εδώ το όνομα (ψευδώνυμο) σας. Το όνομα δεν πρέπει να αποτελείτε πάνω από 50 χαρακτήρες";var cl="pink"
if(this.auth.is_logged_in){readonly="readonly";cl="darkgrey";title="Εδώ εμφανίζεται το ψευδώνυμο σας, το οποίο έχετε ορίσει στο προφίλ σας (δεν μπορείτε να το τροποποιήσετε εδώ)"}
if(true){r+="<tr><td><TABLE border='0' style='width: 100%;' cellpadding='0' cellspacing='0'><TR><TD class='left' style='width: 70%'><INPUT type='text' name='"+make_name(this.name)+"_guest_nickname' style='width: 100%; height: 15px; padding: 0px 2px; margin: 0px;' class='"+cl+"' onkeyup='textCounter(this, \""+this.counter_inner+"\",50);' "+readonly+" title='"+title+"' value='"+this.A_xr()+"' maxlength='50'></TD><TD class='right' style='width: 30%; vertical-align: middle;'><span id='"+this.counter_inner+"' title='οι εναπομένοντες χαρακτήρες' class='pink'></span></TD></TR></TABLE></td></tr>";r+="<tr><td style='height: 2px;'></td></tr>";r+="<tr><td style=''><TEXTAREA name='"+make_name(this.name)+"_chat_message' style='width: 98%; height: 36px; padding: 0px 2px; margin: 0px;' class='pink' onchange='textCounter(this, \""+this.counter_inner+"\",255);' onkeyup='textCounter(this, \""+this.counter_inner+"\",255);' title='Γράψτε εδώ το μήνυμα σας και πατήστε «Αποστολή. Το μήνυμα πρέπει να αποτελείτε το πολύ από 255 χαρακτήρες. Ο αριθμός των εναπομένοντων χαρακτήρων φαίνεται πάνω δεξιά.'></TEXTAREA></td></tr>";r+="<tr><td style='height: 0px;'></td></tr>";r+="<tr><td style=''><input type='button' value='αποστολή' name='"+make_name(this.name)+"_send_msg_ctl' onclick='"+this.name+".send_chat_msg(this)' style='width: 65px; height: 15px; padding: 0px 0px 2px 5px; margin: 0px;font-size: 10px;  text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid #999;' class='white bg_darkgrey' onmouseover=\"this.className='white bg_grey border_darkgrey';\" onmouseout=\"this.className='white bg_darkgrey border_darkgrey';\"></td></tr>";}
else{r+="<tr><td style=''><br>Πρέπει να είστε εγγραμμένος χρήστης του ιστότοπου e-tetradio για να εισάγετε την γνώμη σας<br></td></tr>";}
r+="</TABLE>";r+="</FORM>";return r;}
this.get_chat=function(heartbeat){var hb=(heartbeat)?true:false;var tosend=new Array()
tosend["channel"]=this.chat_channel();tosend["lct_id"]=this.last_dialog_transactions_id;kd("cf.php?f=get_chat&p="+a.serialize(tosend),function(g,aaa){aaa.load_chat_dialog_transactions(g);aaa.show_chat_dialog_transactions();if(!aaa.auth.is_logged_in&&hb){setTimeout(aaa.name+".get_chat(true)",100000);}},this);}
this.load_chat_dialog_transactions=function(what){if(what!=""){eval("what="+what);if(what!=false&&typeof(what)=="object"){for(var i in what){this.chat_dialog_transactions[i]=what[i]}
this.last_dialog_transactions_id=(typeof(i)=="undefined")?this.last_dialog_transactions_id:i;}}}
this.show_chat_dialog_transactions=function(){ADDRinnerHTML(this.chat_dialog_transactions_inner,this.draw_chat_dialog_transactions());}
this.draw_chat_dialog_transactions=function(){var r="";var cl="white bg_darkgrey";var kg_pointer="kg_pointer_darkgrey.png";var kg_pointer_padding="0px 0px 0px 230px";for(var i in this.chat_dialog_transactions){kg_pointer=(kg_pointer=="kg_pointer_darkgrey.png")?"kg_pointer_pink.png":"kg_pointer_darkgrey.png";kg_pointer_padding=(kg_pointer_padding=="0px 0px 0px 230px")?"0px 0px 0px 35px":"0px 0px 0px 230px";var t="";if(formatDate&&getDateFromFormat){t="";}
cl=(cl=="darkgrey")?"pink":"darkgrey";r="<div style='padding: 1px 4px;' class='"+cl+"'><span class='small bold'>"+d(this.chat_dialog_transactions[i].xr)+"</span>"+t+": <span class='small'>"+make_http_link(d(this.chat_dialog_transactions[i].msg))+"</span></div>"+"<hr style='margin: 0px 5px;'/>"+r;}
this.chat_dialog_transactions=new Array();return r;}
this.send_chat_msg=function(that){this.send_msg_ctl=that;this.send_msg_ctl.disabled=true;var msg="";var guest_nickname="";if(that.form){msg=e(trim(that.form[make_name(this.name)+'_chat_message'].value));guest_nickname=e(trim(that.form[make_name(this.name)+'_guest_nickname'].value));that.form[make_name(this.name)+'_chat_message'].value="";}
innerHTML(this.counter_inner,"");var tosend=new Array();tosend["channel"]=this.chat_channel();if(this.auth.is_logged_in){tosend["A_xr_id"]=this.auth.xr.id;}
else{tosend["guest_nickname"]=guest_nickname;}
tosend["msg"]=msg;if(msg!=""&&(guest_nickname!=""||this.auth.is_logged_in)){kd("cf.php?f=add_msg&p="+e(a.serialize(tosend)),function(g,aaa){aaa.send_msg_ctl.disabled=false;if(!aaa.auth.is_logged_in){aaa.get_chat(false)}},this);}
else{this.send_msg_ctl.disabled=false;}}
this.show_wait=function(inner){var r="<table cellpading='0' cellspacing='0' border='0' class='' style='max-width: 100%; width: 100%;max-height: 100%;height: 100%;'><tr><td style='text-align: center; vertical-align:middle;' ><img src='images/loading.gif' alt='φόρτωση' title='φόρτωση, παρακαλώ περιμένετε' /></td></tr></table>";if(innerHTML(inner,r)){show(inner);}}}var ajax_debug_mode=false;function ajax_debug(text){if(ajax_debug_mode){if(get_element('debug_inner')){ADDRinnerHTML('debug_inner',new Date().toTimeString()+": "+text+'<br/>');}}}
var ods=new Array();function kd(url,ld,ob,md,nd){var found=false;var _i_=0;for(var i in ods){if(typeof(ods[i])=="object"){if(ods[i].finished){_i_=i;ods[_i_].finished=false;found=true;break;}}}
if(!found){_i_=ods.length;ods[_i_]=new Object();ajax_debug("Adding objects to ods current_i (_i_):"+_i_);if(window.XMLHttpRequest){ods[_i_].od=new XMLHttpRequest();}
else if(window.ActiveXObject){try{ods[_i_].od=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{ods[_i_].od=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
else{throw'Can not create XMLHTTP-instance';}
try{ods[_i_].od.i=_i_;}
catch(e){}
ods[_i_].od.onreadystatechange=function(){if(this.readyState==4){if(this.status==200||this.status==206){var pd=this.getResponseHeader('Content-Type');pd=pd.substr(0,pd.indexOf(';'));try{switch(pd){case'application/json':ajax_debug("od "+this.i+"; recieved "+this.responseText);ods[this.i].ld((this.responseText==''?null:eval('('+this.responseText+')')),ods[this.i].ob);break;case'text/plain':case'text/html':ajax_debug("od "+this.i+"; recieved "+this.responseText);ods[this.i].ld(this.responseText,ods[this.i].ob);break;default:ajax_debug("od "+this.i+"; Illegal content type "+pd);throw'Illegal content type';}}
catch(err){ajax_debug("od "+this.i+"; Caught error "+err+": Could not eval "+this.responseText);}}
else{ajax_debug("od "+this.i+"; An error has occurred during request; status return: "+this.status);throw'An error has occurred during request';}
ods[this.i].finished=true;ajax_debug("od "+this.i+"; finished: "+ods[this.i].finished);}
else{ajax_debug("od "+this.i+"; still waiting... readyState="+this.readyState);}};}
url="http://www.e-tetradio.gr/"+url;if(md===undefined){md='GET';}
ods[_i_].ld=ld;ods[_i_].ob=ob;ajax_debug("od "+_i_+"; uri = "+url+" / ld = "+ld);ods[_i_].od.open(md,url,true);if(md=='POST'){ods[_i_].od.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=utf-8');var qd=rd(nd);}
else{var qd=null;}
ods[_i_].od.send(qd);ajax_debug("od "+_i_+"; waiting... ");}
function rd(sd){var td='';var ud=true;for(var vd in sd){td+=(ud?'':'&')+vd+'='+window.encodeURI(sd[vd]);if(ud){ud=false;}}
return td;}
TICKER_CONTENT="";TICKER_RIGHTTOLEFT=false;TICKER_SPEED=2;TICKER_STYLE="font-family:Arial; font-size:12px; color: white;";TICKER_PAUSED=false;function ticker_start(trigger_tick){var tickerSupported=false;TICKER_WIDTH=document.getElementById("TICKER").style.width;var img="<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("Safari")!=-1){document.getElementById("TICKER").innerHTML="<TABLE cellspacing='0' cellpadding='0' style='width: 100%;'><TR><TD style='white-space: nowrap; vertical-align: middle; text-align: right; padding-left: "+TICKER_WIDTH+";padding-right: "+TICKER_WIDTH+";'><SPAN style='"+TICKER_STYLE+"width: 100%;' ID='TICKER_BODY'>&nbsp;</SPAN></TD></TR></TABLE>";tickerSupported=true;}
if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1){document.getElementById("TICKER").innerHTML="<DIV style='white-space: nowrap; vertical-align: middle; text-align: right; padding-left: "+TICKER_WIDTH+";padding-right: "+TICKER_WIDTH+";'><SPAN style='"+TICKER_STYLE+"width: 100%;' ID='TICKER_BODY'></SPAN></DIV>";tickerSupported=true;}
if(!tickerSupported)document.getElementById("TICKER").outerHTML="";else{document.getElementById("TICKER").scrollLeft=TICKER_RIGHTTOLEFT?document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth:0;document.getElementById("TICKER_BODY").innerHTML=TICKER_CONTENT;document.getElementById("TICKER").style.display="block";document.getElementById("TICKER").style.overflow="hidden";if(trigger_tick){TICKER_tick();}}}
function TICKER_tick(){if(!TICKER_PAUSED)document.getElementById("TICKER").scrollLeft+=TICKER_SPEED*(TICKER_RIGHTTOLEFT?-1:1);if(TICKER_RIGHTTOLEFT&&document.getElementById("TICKER").scrollLeft<=0)document.getElementById("TICKER").scrollLeft=document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth;if(!TICKER_RIGHTTOLEFT&&document.getElementById("TICKER").scrollLeft>=document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth)document.getElementById("TICKER").scrollLeft=0;window.setTimeout("TICKER_tick()",25);}
function Auth(name,parent){this.name=name;this.parent=parent;this.inner=make_name(this.name)+"_inner";this.forma=make_name(this.name)+"_forma";this.inner_status=make_name(this.name)+"_inner_status";this.xr_inner=make_name(this.name)+"_xr_inner";this.is_logged_in=false;this.psevdonim=e(readCookie("psevdonim"));this.parol=e(readCookie("parol"));this.xr=new Atomo(this.name+".xr",this);this.xr.inner_status=this.inner_status;this.xr.inactive_inner="inactive_inner";this.xr.show_delete_button=false;this.xr.to_show_close=true;this.xr.to_show_cm=false;this.xr.after_get_by_id=function(){}
this.xr.after_save=function(){this.parent.to_show=this.un;this.parent.show();}
this.xr.draw_titlos=function(){return"<span title='"+d(this.email)+"'><span class='bold'>"+d(this.un)+"</span> "+d(this.eponymo)+" "+d(this.onoma)+"</span>";}
this.xr.show_profile=function(attach_inner){this.to_show_avatar=true;this.after_close=function(){hide("opac_black_bg");}
if(get_element(this.inner)){if(innerHTML(this.inner,this.draw())){var p=getElementPosition(attach_inner);show(this.inner,(0),(p.top+p.height+20));show("opac_black_bg",0,0);}}}
this.xr.show_forgot_password=function(attach_inner){this.init();this.after_save();this.after_close=function(){hide("opac_black_bg");}
if(get_element(this.inner)){if(innerHTML(this.inner,this.draw_forgot_password())){var p=getElementPosition(attach_inner);show(this.inner,(0),(p.top+p.height+20));show("opac_black_bg",0,0);}}}
this.xr.show_register=function(attach_inner){this.init();this.after_save();this.to_show_avatar=false;this.type="reader";this.status="pending";this.after_close=function(){hide("opac_black_bg");}
if(get_element(this.inner)){if(innerHTML(this.inner,this.draw())){var p=getElementPosition(attach_inner);show(this.inner,0,(p.top+p.height+20));show("opac_black_bg",0,0);}}}
this.to_show="";this.init=auth_init;this.to_send=auth_to_send;this.show=auth_show;this.draw=auth_draw;this.get=auth_login;this.login=auth_login;this.logout=auth_logout;this.cancel=auth_cancel;this.after_login=function(){this.after_close();this.show();}
this.draw_forgot_password=function(attach_inner){var r="";r+="<input type='button' value='Ανάκτηση κωδικού' id='"+make_name(this.name)+"_forgot_password_ctl' onclick=\""+this.name+".xr.show_forgot_password('"+attach_inner+"')\" class='bttn_108_18 white bg_darkgrey border_darkgrey' onmouseover=\"this.className='bttn_108_18 white bg_grey border_darkgrey';\" onmouseout=\"this.className='bttn_108_18 white bg_darkgrey border_darkgrey';\" tabindex='4' >";return r}
this.draw_register=function(){var r="";r+="<div id='"+make_name(this.name)+"_register_ctl' onclick='"+this.name+".xr.show_register(this.id)'  class='link' onmouseover=\"this.className='link pink';\" onmouseout=\"this.className='link';\">Εγγραφή</div>";return r}
this.show_login=function(attach_inner){this.after_close=function(){hide("opac_black_bg");}
if(get_element(this.inner)){var table="";table+="<FORM name='"+this.forma+"' onsubmit='"+this.name+".login(true);return false;' style='padding: 0px; margin: 0px;' >";table+="<TABLE border='0' cellspacing='4' cellpadding='2' class='white bg_black border_lightgrey' style='width: 262px'>";table+="<tr> ";table+="  <td style='background-color: #414042'>";table+="  <div class='wihte big' style='float:left; padding: 2px 12px;veritcal-align: middle;'>Είσοδος</div>";table+="  <div class='wihte tiny link' style='float:right; padding: 2px 2px;vertical-align: middle;' onclick='hide("+this.name+".xr_inner);"+this.name+".after_close();'>κλείσιμο<img src='images/close_button.png' width='15' height='15' alt='close'></div>";table+="  </td>";table+="</tr>";table+="<tr> ";table+="  <td><div style='float:left;'>Όνομα χρήστη</div>";table+="  <div style='float:right;'>"+"<input type='text' name='"+make_name(this.name)+"_psevdonim' value='' onkeyup='' class='inpt_108_18 grey bg_white border_darkgrey' onblur=\"this.value=trim(this.value);this.className='inpt_108_18 darkgrey bg_white border_lightgrey';\" onfocus=\"this.className='inpt_108_18 black bg_white border_lightgrey';\" tabindex='1'></td>"+"</div>";table+="</tr>";table+="<tr> ";table+="  <td><div style='float:left;'>Συνθηματικό&nbsp;</div>";table+="  <div style='float:right;'>"+"<input type='password' name='"+make_name(this.name)+"_parol' value='' onkeyup='if(is_enter(event)){"+this.name+".login(true);}' class='inpt_108_18 grey bg_white border_darkgrey' onblur=\"this.value=trim(this.value); this.className='inpt_108_18 darkgrey bg_white border_lightgrey';\" onfocus=\"this.className='inpt_108_18 black bg_white border_lightgrey';\" tabindex='2'></td>";+"</div>";table+="</tr>";table+="<tr> ";table+="  <td>";table+="  <div style='float:left;'><input type='button' value='Είσοδος' id='"+make_name(this.name)+"_login_ctl' onclick='"+this.name+".login(true)' class='bttn_64_18 white bg_darkgrey border_darkgrey' onmouseover=\"this.className='bttn_64_18 white bg_grey border_darkgrey';\" onmouseout=\"this.className='bttn_64_18 white bg_darkgrey border_darkgrey';\" tabindex='3' ></div>";table+="  <div style='float:right;'>"+this.draw_forgot_password(attach_inner)+"</div>";table+="  </td>";table+="</tr>";table+="</TABLE>";table+="</FORM>";if(innerHTML(this.xr_inner,table)){var p=getElementPosition(attach_inner);show(this.xr_inner,(0),(p.top+p.height+20));show("opac_black_bg",0,0);}}}
this.after_close=function(){hide("opac_black_bg");}
this.beacon=function(){}
this.session=function(value){if((value==null||typeof(value)=="undefined")&&(this._session==null||typeof(this._session)=="undefined")){value=(new Date().getTime())%1000000000;}
if(value!=null&&typeof(value)!="undefined"){this._session=value;}
return this._session;}}
function auth_init(){var date=new Date();date.setTime(date.getTime()+(10*365*24*60*60*1000));document.cookie="psevdonim=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";document.cookie="parol=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";document.cookie="seans_a=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";}
function auth_to_send(){var toret=new Array();toret["psevdonim"]=this.psevdonim;toret["parol"]=this.parol;toret["session"]=this.session();toret["gl"]="el";return toret;}
function auth_show(){if(get_element(this.inner)){if(innerHTML(this.inner,this.draw())){show(this.inner);}}
if(this.is_logged_in){setTimeout(this.name+".beacon()",60000);}}
function auth_draw(){var table="";if(this.is_logged_in){table+="<TABLE border='0' cellspacing='0' cellpadding='0' class='white'>";table+="<tr> ";table+="  <td style='cursor: pointer;' class='center darkgrey bold' id='"+make_name(this.name)+"_to_show' onclick='"+this.name+".xr.show_profile(this.id)' onmouseover=\"this.className='center black bold';\" onmouseout=\"this.className='center darkgrey bold';\">"+d(this.to_show)+"</td>";table+="  <td style='width: 5px;'></td><td onclick='"+this.name+".logout()' class='link black' onmouseover=\"this.className='link pink';\" onmouseout=\"this.className='link black';\">αποσύνδεση&nbsp;</td>";if(this.xr.type=="admin"||this.xr.type=="writer"){table+="  <td style='width: 5px;'></td><td><a href='administration.php' target='_blank' class='darkgrey' onmouseover=\"this.className='black';\" onmouseout=\"this.className='darkgrey';\">admin</a><td>";}
table+="</tr>";table+="</TABLE>";}
else{table+="<TABLE border='0' cellspacing='0' cellpadding='0'>";table+="<tr> ";table+="  <td id='"+make_name(this.name)+"_login_ctl'  onclick='"+this.name+".show_login(this.id)' class='link' onmouseover=\"this.className='link pink';\" onmouseout=\"this.className='link';\">Είσοδος</td>";table+="  <td style='width: 4px;'></td>";table+="  <td style='width: 1px;' class='bg_black'></td>";table+="  <td style='width: 4px;'></td>";table+="  <td class='right'>"+this.draw_register()+"</td>";table+="</tr>";table+="</TABLE>";}
table+="<div id='"+this.xr_inner+"' class='m' style='display: None;z-index: 5;'></div>"
return table;}
function auth_login(that){if(typeof(that)!="undefined"){this.psevdonim=e((document.forms[this.forma][make_name(this.name)+"_psevdonim"].value));this.parol=e((document.forms[this.forma][make_name(this.name)+"_parol"].value));}
if(this.psevdonim!=""&&this.parol!=""&&this.psevdonim!="null"&&this.parol!="null"){if(get_element(this.inner_status)){innerHTML(this.inner_status,"<div class=''>Γίνετε έλεγχος των στοιχείων σας, παρακαλώ περιμένετε...</div>")};var a=new PHP_Serializer();var b=a.serialize(this.to_send());var what_to_do=new Object();what_to_do.callback=do_login;what_to_do.extra_data=this;x_auth(b,what_to_do);}
else{this.after_login();}}
function do_login(that,aaa){var date=new Date();date.setTime(date.getTime()+(10*365*24*60*60*1000));aaa.is_logged_in=(that["status"]==1)?true:false;if(aaa.is_logged_in){document.cookie="psevdonim="+aaa.psevdonim+"; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";document.cookie="parol="+aaa.parol+"; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";aaa.xr.load(that["data"]);aaa.to_show=aaa.xr.un;}
else{document.cookie="psevdonim=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";document.cookie="parol=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";aaa.mesg=that["mesg"];}
if(get_element(aaa.inner_status)){innerHTML(aaa.inner_status,"")};switch(that["status"]){case 0:alert(strip_html("Τα στοιχεία που εισάγατε αντιστοιχούν σε χρήστη που είναι σε κατάσταση αναμονής, <span style=\"color: rgb(153, 0, 0);\">δεν μπορείτε να εισέλθετε στο σύστημα διαχείρισης&nbsp;</span>"));if(get_element(aaa.inner_status)){innerHTML(aaa.inner_status,"<div class=''>Τα στοιχεία που εισάγατε αντιστοιχούν σε χρήστη που είναι σε κατάσταση αναμονής, <span style=\"color: rgb(153, 0, 0);\">δεν μπορείτε να εισέλθετε στο σύστημα διαχείρισης&nbsp;</span></div>")};break;case-1:alert(strip_html("Ο λογαριασμός σας απενεργοποιήθηκε, <span style=\"color: rgb(153, 0, 0);\">δεν μπορείτε να εισέλθετε στο σύστημα διαχείρισης&nbsp;</span>\n<span style=\"color: rgb(153, 0, 0);\">δεν έχετε εισέλθει<br></span>"));if(get_element(aaa.inner_status)){innerHTML(aaa.inner_status,"<div class=''>Ο λογαριασμός σας απενεργοποιήθηκε, <span style=\"color: rgb(153, 0, 0);\">δεν μπορείτε να εισέλθετε στο σύστημα διαχείρισης&nbsp;</span></div>")};break;case-3:alert(strip_html("<span style=\"color: rgb(153, 0, 0);\">Λάθος στοιχεία</span>"));if(get_element(aaa.inner_status)){innerHTML(aaa.inner_status,"<div class=''><span style=\"color: rgb(153, 0, 0);\">Λάθος στοιχεία</span></div>")};break;default:break;}
aaa.after_login()}
function auth_logout(){var to_send=new Array();to_send["xr_id"]=this.xr.id
to_send["psevdonim"]=this.psevdonim;to_send["session"]=this.session();var a=new PHP_Serializer();var b=a.serialize(to_send);var what_to_do=new Object();what_to_do.callback=function(that,aaa){aaa.after_login()};what_to_do.extra_data=this;x_logout(b,what_to_do);var date=new Date();date.setTime(date.getTime()+(10*365*24*60*60*1000));document.cookie="psevdonim=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";document.cookie="parol=; expires="+date.toGMTString()+"; path=/; domain=e-tetradio.gr";this.xr.init();this.to_show="";this.is_logged_in=false;}
function auth_cancel(){}
function auth_after_login(){alert("dummy after_login");}
