﻿var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

  function hide(id)
  {
	  document.getElementById(id).style.display = "none";
  }//end func hide
  
  function show(id)
  {
	  document.getElementById(id).style.display = "block";
  }//end func hide
  
  function getPosition(obj){
  var topValue= 0,leftValue= 0;
  while(obj){
  leftValue+= obj.offsetLeft;
  topValue+= obj.offsetTop;
  obj= obj.offsetParent;
  }
  finalvalue = new Array(leftValue, topValue);
  return finalvalue;
  }


function hideall(arr)
{
    //arr is an array contains all table idies which should be hide
    var i = arr.length;
    for(j=0;j<i;j++)
    {
        //alert(arr[j]);
        if(document.getElementById(arr[j]))
            hide(arr[j]);
    }//end for
}

function showall(arr)
{
    //arr is an array contains all table idies which should be hide
    var i = arr.length;
    for(j=0;j<i;j++)
    {
        if(document.getElementById(arr[j]))
            show(arr[j]);
    }//end for
}
