// use:
//
//      SSr, gag & target may be null
//
// site - site name wihout protocol 
//   for instance www.wa-2.yar.ru
// 
// label free label used in your html
//
function wa2FBBanner(SSr,site,Label,gag,target) {
  
  cTime  = new Date();
  
  s_call = 'http://www.wa-2.ru/cgi-bin/fbb?count=' + cTime.getSeconds();
  
  if (site != null && Label != null)
    s_call = s_call + '&site=' + site + '&Label=' + Label + '&XFrom=' + site;
  
  if (SSr != null)
    s_call = s_call + '&SSr_master=' + SSr;

  if (gag != null)
    s_call = s_call + '&gag=' + gag;
  
  s_call = s_call + '&CMD=';
  s_img  = s_call + 'bnr_img';
  s_href = s_call + 'bnr_href';
  
  document.write('<a');
  if (target != null) {
    document.write(' target=\"');
    document.write(target);
    document.write('\"');
  }
  document.write(' href=\"');
  document.write(s_href);
  document.write('\">');
  document.write('<img src=');
  document.write(s_img);
  document.write(' border=0>');
  document.write('</a>');
}
