function GetElement(elementName)
{
	if (document.layers)
	{
		return document.layers[elementName];
	}
	else if (document.all)
	{
		return document.all[elementName];
	}
	else if (document.getElementById)
	{
		return document.getElementById(elementName);
	}
}

function GetElement2(elementName) 
{
	if (document.getElementById) { 
		// DOM3 = IE5, NS6
		//alert('hidden');
		return document.getElementById(elementName).style;
	}
	else {
		if (document.layers) { 
			// Netscape 4
			return document.layers[elementName].display;
		}
		else { 
			// IE 4
			return document.all[elementName].style;
		}
	}// if document.getElementByID

}

function showHideDiv(elementName) {
	
	var element = GetElement2(elementName);
	
	if (element.display=="none")
		element.display='inline';
	else
		element.display='none';

}

function hidediv(elementName) {
	if (document.getElementById) { 
		// DOM3 = IE5, NS6
		//alert('hidden');
		document.getElementById(elementName).style.display="none";
	}
	else {
		if (document.layers) { 
			// Netscape 4
			document.layers[elementName].display="none";
		}
		else { 
			// IE 4
			document.all[elementName].style.display="none";
		}
	}// if document.getElementByID
}//function

function showdiv(elementName) {
	if (document.getElementById) { 
		// DOM3 = IE5, NS6
		document.getElementById(elementName).style.display='inline';
	}
	else {
		if (document.layers) { 
			// Netscape 4
			document.layers[elementName].display='inline';
		}
		else { 
			// IE 4
			document.all[elementName].style.display='inline';
		}
	}// if document.getElementByID
}//function

