<!--
var layerStyleRef, layerRef, styleSwitch, topContent;

if (document.layers) {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
}
else if(document.all){
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
}
else if(document.getElementById){
 layerStyleRef="layer.style.";
 layerRef="document.getElementById";
 styleSwitch=".style";
}

var SubCatOpen="";
  
if (document.all)
  var doc_elem=document.all
  
function cB(Ref){
 if (Ref.className!="CA"){
  if (Ref.className=="CI")
   Ref.className="CIO";
  else
   Ref.className="CI";
 }
}
  
function frmLogonOnSubmit(){
 if (document.frmLogon.edtUserName.value.trim()==''){
  alert("Πρέπει να συμπληρώσετε όνομα 'χρήστη'")
  document.frmLogon.edtUserName.select();
  return false;
  }
 else if (document.frmLogon.edtPassword.value.trim()==''){
  alert("Πρέπει να συμπληρώσετε 'κωδικό'")
  document.frmLogon.edtPassword.select();
  return false;
 }
 else
  return true;
}
  
  
String.prototype.trim=function(){
 return this.replace(/(^\s*)|(\s*$)/g,"");
}
 
function checkEmail(string) {
  if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
    return true;
  else
    return false;
} 
 
  
var Timer;
var mMO=false;


function sH(elem, menuPos){
 if(! mMO){
 var mnTop;
 for(var i=1;i<=20;i++){ 
  if(eval(layerRef + '("mnu' + i + '")')){
   if("mnu"+i == elem ){  
    if(document.all){
     topContent=document.all("topPart").offsetHeight;
     subMenuPos=document.all("c"+i).offsetTop;
     mnTop=document.all("mnTB").offsetTop;
     eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.left=193');
    }
    else if(document.getElementById){
     topContent=document.getElementById("topPart").offsetHeight
     subMenuPos=document.getElementById("c"+i).offsetTop
     eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.left=195');
     mnTop=document.getElementById("mnTB").offsetTop;
    }
    eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.width=195');
    eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.display="block"');
    eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.top=subMenuPos+topContent+mnTop');
   }
   else{
    eval(layerRef + '("mnu' + i + '")' + styleSwitch + '.display="none"');
   }
  }
 }
 clearTimeout(Timer);
 }
}  
  
  
function startTimer(){
 Timer = setTimeout('sH("")', 2000);
}

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",4000)
setTimeout("move2(document.main.document.second)",4000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",4000)
setTimeout("move1(document.main.document.first)",4000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0
setTimeout("move3(tdiv)",4000)
setTimeout("move4(second2_obj)",4000)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.top=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0
setTimeout("move4(tdiv2)",4000)
setTimeout("move3(first2_obj)",4000)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5
setTimeout("move4(second2_obj)",50)
}
else{
tdiv2.style.top=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}

//-->