function getMouseXY(e) {   mouseX = ((window.Event) ? e.pageX : event.clientX)+document.body.scrollLeft;   mouseY = ((window.Event) ? e.pageY : event.clientY)+document.body.scrollTop;   if (mouseX < 0){mouseX = 0}   if (mouseY < 0){mouseY = 0}     return true;}     function mapHighlight(terrNum)      {        mapOut();        var tLayer=document.getElementById(terrNum);        var gCount=eval('countList.t'+terrNum);        changeOpac(1, terrNum);        tLayer.style.display='inline';         opacity(terrNum, 15, 60, 1000);        curTerr=terrNum;        toolTip=document.getElementById("ToolTip");        toolTip.innerHTML='<div class="tip">'+((parseInt(gCount)>1) ? 'There are '+gCount+' trial results for this territory.': 'There is 1 trial result for this territory.')+'</div>';        toolTip.style.top=mouseY;        toolTip.style.left=mouseX;        toolTip.style.display='inline';       }      function mapOut()      {      if (curTerr!='')        {        toolTip.style.display='none';         var tLayer=document.getElementById(curTerr);         opacity(curTerr, 60, 0, 1000);         curTerr='';        }          }     function entryCount()       {       }           function showTerr(terrNum)       {        var htmlString='';        var trAlt='z';        var hCounter=70;        for (var i=0;i<yData.length;i++)         {          if (terrNum==yData[i].te)            {             hCounter=hCounter+30;             trAlt=(trAlt=='') ? ' class="alt"':'';             htmlString=htmlString+'<tr'+ trAlt+'>';             htmlString=htmlString+   '<td>'+yData[i].ln+'</td>';             htmlString=htmlString+   '<td>'+yData[i].fn+'</td>';             htmlString=htmlString+   '<td>'+yData[i].ct+'</td>';             htmlString=htmlString+   '<td>'+yData[i].va+'</td>';             htmlString=htmlString+   '<td>'+yData[i].bp+'</td>';             htmlString=htmlString+   '<td>'+yData[i].cv+'</td>';             htmlString=htmlString+   '<td>'+yData[i].cp+'</td>';             htmlString=htmlString+   '<td>'+yData[i].by+'</td>';             htmlString=htmlString+   '<td>'+yData[i].cy+'</td>';             htmlString=htmlString+'</tr>';            }          }        if (htmlString=='')         {          curPop='popUpNoData';         }       else         {          htmlStart='<table style="width: 500px;">';          htmlStart=htmlStart+'<tr>';          htmlStart=htmlStart+   '<th>First Name</th>';          htmlStart=htmlStart+   '<th>Last Name</th>';          htmlStart=htmlStart+   '<th>City</th>';          htmlStart=htmlStart+   '<th>Variety</th>';          htmlStart=htmlStart+   '<th>BASF Product</th>';          htmlStart=htmlStart+   '<th>Competitive Variety</th>';          htmlStart=htmlStart+   '<th>Competitive Product</th>';          htmlStart=htmlStart+   '<th>BASF Yield</th>';          htmlStart=htmlStart+   '<th>Competitive Yield</th>';          htmlStart=htmlStart+'</tr>';          htmlString=htmlStart+htmlString+'</table>';          tLayer=document.getElementById('YieldTable');          tLayer.innerHTML=htmlString;          tLayer=document.getElementById('popUpYieldTable');        //  tLayer.style.height=hCounter+'px';          curPop='popUpYieldTable';         }         showPop(curPop);   }function closePop()   {    hidePop(curPop);   }
