function popUpLongName(longUrl)
{
  
     event.cancelBubble = true;
     showModalDialog("ModalDialog.htm",longUrl,"status:no;help:no;dialogWidth:350px;dialogHeight:200px");
   
}

function  decodeHTML(str)
{ 
     var div = document.createElement('div');
     div.innerHTML = str;
     return div.innerText
}
  
function onThumbnailPopup()
{
 
          var image =  event.srcElement.parentElement.parentElement.children[0];
          var x,y;
          x = event.clientX+document.getElementsByTagName("body")[0].scrollLeft+event.srcElement.offsetWidth-event.offsetX+5;
          y = event.clientY+document.getElementsByTagName("body")[0].scrollTop-event.offsetY;
          image.style.display="block";
          image.style.position = "absolute";
          image.style.left = x;
          image.style.top =  y;
          
          
       
          
}
      
function onThumbnailHidePopup()
{
          var image =  event.srcElement.parentElement.parentElement.children[0];
          image.style.display="none";
             
    
          
}

 
     
  
  
function trimAll(sString)
 {
 
         while (sString.substring(0,1) == ' ')
         {
                    sString = sString.substring(1, sString.length);
         }
         while (sString.substring(sString.length-1, sString.length) == ' ')
         {
                    sString = sString.substring(0,sString.length-1);
         }
         return sString;

 }