
var imgMax = new Image(10,10);
imgMax.src = 'http://demo.hdwebstudio.com/adminimages/arrow.png';
var imgMin = new Image(10,10);
imgMin.src = 'http://demo.hdwebstudio.com/adminimages/down_arrow.png';

function hideshow(obj, fields)
{
  var i,j,curObj;
  var fieldList = fields
  var sepFieldList = fieldList.split(",");
  var fieldCount = sepFieldList.length;

  //Loop through all id and hide or show them.
  for(j=0; j<fieldCount;j++)
  {
	curObj = findObj(sepFieldList[j]);
    if(curObj.style.display=="none")
    {
      curObj.style.display="inline";
      obj.src=imgMax.src;
    }
    else if(curObj.style.display=="inline")
    {
      curObj.style.display="none";
      obj.src=imgMin.src;
    }
  }
  return false;
}

function hideshowRow(obj,fields)
{
  var i,j,curObj;
  var fieldList = fields
  var sepFieldList = fieldList.split(",");
  var fieldCount = sepFieldList.length;
  alert(sepFieldList);

  //Loop through all id and hide or show them.
  for(j=0; j<fieldCount;j++)
  {
	curObj = findObj(sepFieldList[j]);
	alert(curObj);
    if(curObj.style.visibility=="visible")
    {
      curObj.style.visibility="hidden";
    }
    else if(curObj.style.visibility=="hidden")
    {
      curObj.style.visibility="visible";
    }
  }
  return false;
}


function openWin( windowURL, windowName, windowFeatures ) { 
  return window.open( unescape(windowURL), windowName, windowFeatures ) ; 
} 


