var win = null;
function new_window(mypage,myname,w,h,scroll) {
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}

var js_lang = 'en';
function popup(url, wname, ttl, close_msg, wwidth, wheight, attr) {
  link1s='', link1e='';
  if (wname=='') wname='popup'+parseInt(Math.random()*10000);
  attr = attr+'----------';
  toolbar = (attr.substr(0,1)!='-')?'yes':'no';
  resizable = (attr.substr(1,1)!='-')?'yes':'no';
  scrollbars = (attr.substr(2,1)!='-')?'yes':'no';
  status = (attr.substr(3,1)!='-')?'yes':'no';

  attrbs = 'toolbar='+toolbar+',resizable='+resizable+
    ',scrollbars='+scrollbars+',status='+status;

  msgWindow=window.open("",wname,'width='+wwidth+',height='+wheight+
    ','+attrbs);
  ph_ttl = ttl;
  ttl = ((js_lang=='gr') ? ('Σαβίνα Γιαννάτου - ') : ('Savina Yannatou - ')) + ttl;
  if (close_msg=='') close_msg = (js_lang=='gr') ? ('Κλείσε παράθυρο') : ('Close window');
  d1=(attr.substr(4,1)!='-')?'':
    '<br><span style="font-family:Arial, Helvetica, sans-serif; font-size:9pt; '+
    'font-weight:bold; color:#ffff00">'+ph_ttl+'</span>';
  d2=(attr.substr(5,1)!='-')?'':
    '<p><span style="font-family:Arial, Helvetica, sans-serif; font-size:7pt; font-weight:bold;">'+
    '<a style="color:#ddddff" href="javascript:close();">['+close_msg+']</a></span>';
  if (attr.substr(6,1)!='-') {
    link1s='<a href="'+close_msg+'" target="_blank">';
    link1e='</a>';
  }
  d='<html><head><title>'+ttl+'</title>'+
    '<link rel=stylesheet type="text/css" href="'+js_pp+'common/style.css">'+
    '</head><body bgcolor="#ffffff">'+
    '<table border=0 width="100%" height="100%" class="font_main"><tr><td align=center valign=center>'+
    link1s+'<img border=0 src="'+url+'" >'+link1e+
    d1+d2+
    '</td></tr></table></body></html>';

  msgWindow.moveTo(25 + parseInt(Math.random()*30), 25 + parseInt(Math.random()*30));
  msgWindow.document.open();
  msgWindow.document.write(d);
  msgWindow.document.close();
  msgWindow.resizeTo(wwidth,wheight);
  msgWindow.focus();
}

var page_title_str = "", page_title_cnt_val = 0, page_title_timer_id = 0;
function page_title_fnc_init(page_title_str4fnc) {
  page_title_cnt_val = 0;
  page_title_str = page_title_str4fnc;
  page_title_timer_id = setInterval("page_title()", 120);
}

function page_title() {
  window.parent.document.getElementById('pgtitle_name').innerHTML = page_title_str.substring(0, ++page_title_cnt_val);
  if (page_title_cnt_val>=page_title_str.length) { clearInterval(page_title_timer_id); }
}

function ml1_send() { window.location="ma"+mclc(105)+"lt"+
"o"+mclc(50+8)+"in"+"fo"+mclc(30+34)+
"sav"+"i"+""+mclc(10+50*2)+"aya"+""+"nn"+"a"+"t"+""+"ou"+mclc(2*16+14)+"c"+""+"om"; }

function ml2_send() { window.location="ma"+mclc(105)+"lt"+
"o"+mclc(50+8)+"uni"+""+"te"+"d"+"wor"+"ld"+mclc(30+34)+
"h"+""+"o"+mclc(108)+mclc(2*16+14)+"g"+""+"r"; }

function ml3_send() { window.location="ma"+mclc(105)+"lt"+
"o"+mclc(50+8)+"i"+""+"tz"+"i"+""+"k"+mclc(30+34)+
"a"+""+"vi"+"v"+"2"+""+mclc(2*16+14)+"co"+""+"m"; }

function ml4_send() { window.location="ma"+mclc(105)+"lt"+
"o"+mclc(50+8)+"k"+""+"ats"+"ta"+"m"+""+mclc(30+34)+
"ot"+""+"en"+""+"et"+""+mclc(2*16+14)+"g"+""+"r"; }

function ml5_send() { window.location="ma"+mclc(105)+"lt"+
"o"+mclc(50+8)+"i"+""+"nf"+"o"+mclc(30+34)+
"pt"+""+"wm"+""+"us"+"i"+""+"c"+mclc(2*16+14)+"co"+""+"m"; }

function ml_send(m2, m1, m4, m3) {
  window.location="mai"+"lt"+"o:"+m1+m2+mclc(30+34)+m3+m4; }

function mclc(msum) { return String.fromCharCode(msum); }
