
 function modifyText(id, text) {
        if(document.getElementById && text != '') {
          obj = document.getElementById(id);
          obj.innerHTML= text;
        }
      }
      
      
function Opendiv(theDiv){
     var elem = document.getElementById(theDiv);
     var ec = document.getElementById(ec);
     
     elem.style.display = "";

          
}

function Closediv(theDiv,ec){
     var elem = document.getElementById(theDiv);
     var ec = document.getElementById(ec);
     
     elem.style.display = "none";
     ec.innerHTML = "<%=DownArrow%>";
          
}

function toggle(theDiv,ec){
     var elem = document.getElementById(theDiv);
     var ec = document.getElementById(ec);
     elem.style.display = (elem.style.display == "none")? "" : "none";
     if(elem.style.display == "none")
          ec.innerHTML = "<%=DownArrow%>";
     else
          ec.innerHTML = "<%=UpArrow%>";          
}


var smallwindow;
function ShowImgPopUp(fileName)
{
     var locString = unescape (fileName);
     var curImg = new Image();
     curImg.src = fileName;

     var scale = 1.0;
     var width = curImg.width;
     var height = curImg.height;
     if (height == 0) height =480;
     if (width== 0) width=640;
     if (typeof (smallwindow) != 'undefined')
     {
          smallwindow.close();
          if (smallwindow.closed)
          {
               var smallwindow = window.open(null, 'smallwindow', 'dependent=yes resizable, status=no,width='+width+ ',height='+height+ ',alwaysRaised=1, toolbar=no, menubar=no, status=no');
          }
     }
     else
     {
             var smallwindow = window.open(null, 'smallwindow', 'resizable, status=no,width='+width+ ',height='+height+ ',alwaysRaised=1, toolbar=no, menubar=no, status=no');
     }

       smallwindow.document.write ("<div align=center>");
       smallwindow.document.write ("<img src="+ fileName + ">");
       smallwindow.document.write ("</div>");
       
   
   
     return;
     
}

