  var random1=-1;
  var random2=-1;
  var random3=-1;

  function teasersSelect() {
    random1=Math.floor(Math.random()*tsind);
    while (random2<0) {
      random2=Math.floor(Math.random()*tsind);
      if (random2==random1) random2=-1;
    }
    while (random3<0) {
      random3=Math.floor(Math.random()*tsind);
      if (random3==random1) random3=-1;
      if (random3==random2) random3=-1;
    }
  }

  function teaserBuild(i) {
    var teaserCode='';
    var pictCode='';
    if (tsPict[i]!='none') pictCode='<img src="'+tsPict[i]+'" align="right" class="teaserPicture" />';
    teaserCode+='<tr><td width="340" align="right" class="teaserTitle"><a href="'+tsLink[i]+'">'+tsTitl[i]+'</a></td></tr>';
    teaserCode+='<tr><td width="340" align="right" class="teaserContent">'+pictCode+tsCont[i]+'</td></tr>';
    teaserCode+='<tr><td width="340" align="left" class="teaserLink"><a href="'+tsLink[i]+'">&gt;&gt; לכתבה</a></td></tr>';
    return teaserCode;
  }

