﻿//<!--
      function evoElement(ControlName){
            return evoElement( ControlName, false);
        }
        
        function evoElement(ControlName, ignoreErrors){
            var Obj;
            // check if object has non unique ID
            if ( (typeof document.getElementById(ControlName) != "undefined")
                 && (document.getElementById(ControlName) != null))
                return document.getElementById(ControlName);
            
            // check for expanded (Unique) name
            if (typeof ControlPrefix == "undefined") {
                Obj = document.getElementById(ControlName);
            } else {
                if (ControlPrefix==null) {
                    Obj = document.getElementById(ControlName);
                } else {
                    if (ControlPrefix=='') {
                        Obj = document.getElementById(ControlName);
                    } else {
                        // Need to add prefix
                        Obj = document.getElementById(ControlPrefix + ControlName);
                    }
                }
            }
            if( (typeof ignoreErrors == "undefined" || ignoreErrors == false) &&  ( typeof Obj == "undefined" || Obj == null) )
            {
                alert('Element [' + ControlName + '] does not exist');
            } else {
                return Obj;
            }
        }        
              
      function ToggleTblSteps(id) {
           
           var DivID = evoElement("div_" + id).style;
           var textvis = "false" ;
           
           if(DivID.display != "")
           {
                if (DivID.display == "") { textvis = "true" ; }
                for(i=1; i<50; i++) {
                      if (evoElement("div_" + i,true)) {
                          if(evoElement("div_" + i,true) && i !== id) {
                              evoElement("div_" + i).style.display = "none" ;
                          }
                    }
                }
               if (textvis == "false") {
                      DivID.display = "";
                                  }
                else if (textvis == "true") {
                      DivID.display = "none";
                    
                }           
       
             }
      }
      
      function ToggleTbl(id) {
           
           
           var Table = evoElement("tbl_" + id).style;
           var textvis = "false" ;
           
           if(Table.display != "")
           {
                if (Table.display == "") { textvis = "true" ; }
                for(i=1; i<50; i++) {
                      if (evoElement("tbl_" + i,true)) {
                          if(evoElement("tbl_" + i,true) && i !== id) {
                              evoElement("tbl_" + i).style.display = "none" ;
                          }
                    }
                }
               if (textvis == "false") {
                      Table.display = "";
                                  }
                else if (textvis == "true") {
                      Table.display = "none";
                    
                }           
       
             }
           

      }      
      
      


       
    function PopUp(href_name, folder, imgName)
       {
            //document[img_name].src = img_src;
            document.getElementById(href_name).href = "Popup.htm?folder=" + folder + "&imgName=" + imgName;
            
            
       } 
       
    function roll_over(img_name, img_src)
       {
            document[img_name].src = img_src;
       }       
       
    function roll_over_href(img_name, img_src, href_name, folder, imgName)
       {
            document[img_name].src = img_src;
            document.getElementById(href_name).href = "Popup.htm?folder=" + folder + "&imgName=" + imgName;
            
       }                     

-->

