
function NewsWindName()
{
 dt=new Date();
 s1=""+dt.getUTCHours();s2=""+dt.getUTCMinutes();s3=""+dt.getUTCSeconds();
 return s1+s2+s3;
}

function ViewNews(obj)
{
  _ViewNews(obj.cells[0].innerText);
}

function _ViewNews(url)
{
  _ShowWind(url, 0,0, 700,480,NewsWindName(),"location=1,directories=0,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1",true,true);
}

function _ShowWind(url, x,y, width, heigth,wname,optns,align,valign)
{
 if(align == true) {
   if(screen.width < width) doPopUpX=0;
   else                        doPopUpX = (screen.width-width)/2;
 }else doPopUpX=x;

 if(valign == true) {
  if(screen.height <heigth) doPopUpY=0;
  else                         doPopUpY = (screen.height-heigth)/2;
 }else doPopUpY=y;
 optns = "width="+width+",height="+heigth+",left="+doPopUpX+",top="+doPopUpY+","+optns;
 NFW2=window.open(url,wname,optns);
 return NFW2;
}
