function showDiv(divId)
{
  var style2;
  
  if (document.getElementById)
  {
    // this is the way the standards work
    style2 = document.getElementById(divId).style;
  }
  else if (document.all)
  {
    // this is the way old msie versions work
    style2 = document.all[divId].style;
  }
  else if (document.layers)
  {
    // this is the way nn4 works
    style2 = document.layers[divId].style;
  }
  
  if (style2==null || style2.display == "none") {
    style2.display = "block";
  } 
}

function hideDiv(divId)
{
  var style2;
  
  if (document.getElementById)
  {
    // this is the way the standards work
    style2 = document.getElementById(divId).style;
  }
  else if (document.all)
  {
    // this is the way old msie versions work
    style2 = document.all[divId].style;
  }
  else if (document.layers)
  {
    // this is the way nn4 works
    style2 = document.layers[divId].style;
  }
  
  if (style2==null || style2.display == "block") {
    style2.display = "none";
  } 
}

function showAllDiv(divCount)
{
  var style2;
  var divId;
  for(var i = 1; i <= divCount; i++) {
  	  divId = "content"+i;
	  if (document.getElementById)
	  {
		// this is the way the standards work
		style2 = document.getElementById(divId).style;
	  }
	  else if (document.all)
	  {
		// this is the way old msie versions work
		style2 = document.all[divId].style;
	  }
	  else if (document.layers)
	  {
		// this is the way nn4 works
		style2 = document.layers[divId].style;
	  }
	  
	  if (style2==null || style2.display == "none") {
		style2.display = "block";
	  } 
	}
}

function hideAllDiv(divCount)
{
  var style2;
  var divId;
  for(var i = 1; i <= divCount; i++) {
  	  divId = "content"+i;
	  if (document.getElementById)
	  {
		// this is the way the standards work
		style2 = document.getElementById(divId).style;
	  }
	  else if (document.all)
	  {
		// this is the way old msie versions work
		style2 = document.all[divId].style;
	  }
	  else if (document.layers)
	  {
		// this is the way nn4 works
		style2 = document.layers[divId].style;
	  }
	  
	  if (style2==null || style2.display == "block") {
		style2.display = "none";
	  } 
	}
}
