﻿//function for expand and close
function hidify_showify_gridsize(e_table, e_img, alt_less, alt_more, result_gridDiv) 
{
    var gridDiv = document.getElementById(result_gridDiv).style;
    var id_table = document.getElementById(e_table).style;
    
    if(id_table.display == "table-cell" || id_table.display == "block") 
    {    gridDiv.height = "400px"; }
    else
    {    gridDiv.height = "233px"; }
    return hidify_showify(e_table, e_img, alt_less, alt_more); 
}

function hidify_showify(e_table, e_img, alt_less, alt_more) 
{
   if(document.getElementById) 
   {
      var id_table = document.getElementById(e_table).style;
      var id_img = document.getElementById(e_img);

      //Set the object to table-cell if the browser is
      //Firefox and block if it's anything else.
      if(navigator.userAgent.indexOf("Firefox") != -1)
      {
         if(id_table.display == "table-cell") 
         {
            id_table.display = "none";
            id_img.src = id_img.src.replace(/minus/gi,'plus');
            id_img.alt = alt_more;
            id_img.title = alt_more;
         }
         else 
         {
            id_table.display = "table-cell";
            id_img.src = id_img.src.replace(/plus/gi,'minus');
            id_img.alt = alt_less;
            id_img.title = alt_less;
         }
      }
      else 
      {
         if(id_table.display == "block") 
         {
            id_table.display = "none";
            id_img.src = id_img.src.replace(/minus/gi,'plus');
            id_img.alt = alt_more;
            id_img.title = alt_more;
         }
         else 
         {
            id_table.display = "block";
            id_img.src = id_img.src.replace(/plus/gi,'minus');
            id_img.alt = alt_less;
            id_img.title = alt_less;
         }
      }
      //window.Page_BlockSubmit = true;
      return;
   }
   else 
   {
      return;
   }
}

function hidifyshowify(e_table, e_img, alt_less, alt_more) 
{
   if(document.getElementById) 
   {
      var id_table = document.getElementById(e_table).style;
      var id_img = document.getElementById(e_img);

      //Set the object to table-cell if the browser is
      //Firefox and block if it's anything else.
      if(navigator.userAgent.indexOf("Firefox") != -1)
      {
         if(id_table.display == "table-cell") 
         {
            id_table.display = "none";
            id_img.src = id_img.src.replace(/minus/gi,'plus');
            id_img.alt = alt_more;
            id_img.title = alt_more;
         }
         else 
         {
            id_table.display = "table-cell";
            id_img.src = id_img.src.replace(/plus/gi,'minus');
            id_img.alt = alt_less;
            id_img.title = alt_less;
         }
      }
      else 
      {
         if(id_table.display == "block") 
         {
            id_table.display = "none";
            id_img.src = id_img.src.replace(/minus/gi,'plus');
            id_img.alt = alt_more;
            id_img.title = alt_more;
         }
         else 
         {
            id_table.display = "block";
            id_img.src = id_img.src.replace(/plus/gi,'minus');
            id_img.alt = alt_less;
            id_img.title = alt_less;
         }
      }
      CallServer("true","");  
      return;
   }
   else 
   {
      return;
   }
}

function expandcoll(message)
{
    //client side exception handling
}
    
function onError(message)
{
    //client side exception handling
}