function go(i,si,ssi)
{ var da=new Date(), dy=new Date(), dt;
  dy.setYear(da.getYear()-1); dy.setMonth(1,1); dy.setHours(0,0,0);
  dt=(da.getTime()-dy.getTime())/1000;
  parent.location.href="index.php?mi="+i+"&smi="+si+"&ssmi="+ssi+"&z="+dt;
}
function go2(i,si,ssi,label)
{ var da=new Date(), dy=new Date(), dt;
  dy.setYear(da.getYear()-1); dy.setMonth(1,1); dy.setHours(0,0,0);
  dt=(da.getTime()-dy.getTime())/1000;
  var l=this.location;
  /* alert ("host="+l.host+"\npathname="+l.pathname+"\nsearch="+l.search+"\nhash="+l.hash); */
  var hr=l.protocol+"//"+l.host+l.pathname+"?mi="+i+"&smi="+si+"&ssmi="+ssi+"&z="+dt+label; alert("!!! hr="+hr);
  parent.frmw.location.href=hr;
}
function neww(wname, url)
/* Launching a Page in a New Window */
{ var h; h = window.open (url, wname, 
  "height=360,width=480,menubar=0,toolbar=0,status=0,resizeable=0,scrollbars=0");
  h.focus(); window.event.cancelBubble=true;
}
function dl(tc,fn) /* Download a wallpaper file: fn=filename */
{ var wh=window.open("idl.php?t="+tc+"&f="+fn, "WallPaper", "menubar=0,toolbar=0,status=0,resizeable=1,scrollbars=1");
  parent.location.reload();
  wh.focus(); return(false);
}
function loaded ()
{ var i,h,t,hr; /* Correct the scope of action for Alien links (from BannerExchange): */
  t = document.all.tags("A");
  for (i=0;i<t.length;i++) 
      { hr = new String (t(i).href);
	    h = location.hostname;
	    if (hr.indexOf(h)<0) /* Hyperlink doesn't contain our HostName: Alien */
	       t(i).target = "_top";
	  }
}
