function showHideAllDiv(divCount, text)
{
	
  var style2;
  var divId;
  var lbl;
  var lblAllTop;
  var lblAllBottom;
  var lblAllIdTop;
 var lblAllIdBottom;
  
  for(var i = 1; i <= divCount; i++) {
  	  divId = "content"+i;
	  lblId = "lbl"+divId;
	  lbl = "";
	  
	  if (document.getElementById)
	  {
		// this is the way the standards work
		style2 = document.getElementById(divId).style;
		lbl = document.getElementById(lblId);
	  }
	  else if (document.all)
	  {
		// this is the way old msie versions work
		style2 = document.all[divId].style;
		lbl = document.all[lblId];
	  }
	  else if (document.layers)
	  {
		// this is the way nn4 works
		style2 = document.layers[divId].style;
		lbl = document.layers[lblId];
	  }
	  if (style2==null || style2.display == "none") {
	  	style2.display = "block";
		//lbl.innerHTML = "Hide";
	  } else {
		style2.display = "none";
		// lbl.innerHTML = "Show";
  	  }  
}
	lblAllIdTop = "lblcontentAllTop";
	lblAllIdBottom = "lblcontentAllBottom";
	if (document.getElementById)
	{
		lblAllTop = document.getElementById(lblAllIdTop);
		lblAllBottom = document.getElementById(lblAllIdBottom);
		
	}
	else if (document.all)
	{
		lblAllTop = document.all[lblAllIdTop];
		lblAllBottom =document.all[lblAllIdBottom];
	}
	else if (document.layers)
	{
		lblAllTop = document.layers[lblAllIdTop];
		lblAllBottom =document.layersl[lblAllIdBottom];
	}

	//alert(lblAllTop.innerHTML);
	var pTop = lblAllTop.innerHTML.indexOf("Show");
	var pBottom = lblAllBottom.innerHTML.indexOf("Show");
	//alert(pTop);
	if (pTop >= 0 ||  pBottom >= 0) {
		lblAllTop.innerHTML = "Hide All " + " " + text;
		lblAllBottom.innerHTML = "Hide All " + " " +text;
	 } else {
		 lblAllTop.innerHTML = "Show All " + " " +text;
		 lblAllBottom.innerHTML = "Show All " + " " +text;
  	 } 
}


function showHideDiv(divId)
{
  var style2;
  var lblId = "lbl"+divId;
  var lbl = "";
  
  if (document.getElementById)
  {
    // this is the way the standards work
    style2 = document.getElementById(divId).style;
    lbl = document.getElementById(lblId);
  }
  else if (document.all)
  {
    // this is the way old msie versions work
    style2 = document.all[divId].style;
    lbl = document.all[lblId];
  }
  else if (document.layers)
  {
    // this is the way nn4 works
    style2 = document.layers[divId].style;
    lbl = document.layers[lblId];
  }
  
  if (style2==null || style2.display == "none") {
    style2.display = "block";
    // lbl.innerHTML = "Hide";
  } else {
    style2.display = "none";
    // lbl.innerHTML = "Show";
  }  
}