// ***** function to do show a div
function showDiv(divID,divSubstr)
{
    var substrLength = divSubstr.length;
	var divs = document.getElementsByTagName('div');
	for(i=0;i<divs.length;i++)
	{
        // get the substring of the div name
       // alert(divs[i].id.substring(0,substrLength));

        // if we match the div then show it, if we don't then hide it
		if(divs[i].id.match(divID))
		{
			if (document.getElementById)
				divs[i].style.display='block';
			else if (document.layers) // Netscape 4
				document.layers[divs[i]].display = 'block';
			else // IE 4
				document.all.hideShow.divs[i].visibility = 'visible';

		} else if( divs[i].id.substring(0,substrLength).match(divSubstr) ) {
			if (document.getElementById) // DOM3 = IE5, NS6
				divs[i].style.display='none';// show/hide
			else if (document.layers) // Netscape 4
				document.layers[divs[i]].display = 'none';
			else // IE 4
				document.all.hideShow.divs[i].visibility = 'hidden';
        }
	}
}

