
function openwindow(url) {
  if (document.all) var hh = top.document.body.clientHeight+30;
  else var hh = window.outerHeight-30;
  var we=window.open(url, 'guidepage','resizable=yes,location=no,scrollbars=yes,width=560,height='+hh+',left=48,top=24');
  we.focus();
}

var memcategory="";
function oneevent(Id,Name,Login,Category,Bdate,Edate,Nbdays,Country,State,Town,Description,Website,Going,Expired){

selCountry=(selCountry)?Country:"";
if(memcategory!=Category) document.write("<tr><td class='gallery color0'>"+Category.toUpperCase()+" &nbsp; &nbsp; &nbsp; &nbsp; "+selCountry+"</td></tr>");

bigevent=(Nbdays>1 && Category=='event')?' bigevent':'';
document.write("<tr><td  align='left' class='guide"+Expired+"'><p class='"+bigevent+"'>");
if(Nbdays>1 && Category=='event') document.write("<span style='float:right'>("+Nbdays+' '+GU14+")</span>");
document.write("<strong>"+Bdate);

if(Edate && Edate != Bdate) document.write(" - "+Edate);

document.write(" &nbsp; "+Town+"</strong>, <a class='"+Expired+"' href = '#' onClick=\"openwindow('guidepage.php?id="+Id+"&login="+Login+"'); return false\">"+Name+"</a>.</p>"+Country+". ");

if(State) document.write(State+". ");

document.write(Description+"<br>");

if(!Expired) 
document.write("<a href='../pages/gallery.php?event="+Id+"&evname="+escape(Name)+"' class='link2' target='_parent'>[ "+GU10+" ]</a> - ");
else 
document.write("<a href='../pages/gallery.php?event="+Id+"&evname="+escape(Name)+"' class='link3' target='_parent'>[ "+GU13+" ]</a> - ");

if(Going==1) 
document.write("<a href='#' class='link2' onclick='var wm=window.open(\"removeme.php?idevent="+Id+"\",\"removeme\",\"resizable=no,location=no,scrollbars=no,width=300,height=200,left=48,top=24\");wm.focus();return false'>[ "+GU12+" ]</a> - ");
else if(!Expired){
if(ID) 
document.write("<a href='#' class='link2' onclick='var wm=window.open(\"addme.php?idevent="+Id+"&category="+Category+"\",\"addme\",\"resizable=no,location=no,scrollbars=no,width=300,height=200,left=48,top=24\");wm.focus();return false'>[ "+GU11+" ]</a>");

else if(Going!=0)
document.write("<a href='../pages/connection.php' class='link2'>[ "+GU11+" ]</a>");
}

if(Website) document.write(" - <a href='"+Website+"' target='_blank' class='link2'>[ website ]</a>");

document.write("<br><br></td></tr>");
memcategory=Category;
}