//  Author: Matthew Ellison
//  You are free to use or modify this code if you reference the
//  author's email address matthew@ellisonconsulting.com
//  in a comment within your code

function classAttributeName()
// This function returns "className" for IE5+ and "class" for Netscape 6+
{
	var classAttr

	// if Netscape 6+
	if ((!document.all)&&(document.getElementById))
	{
		classAttr="class";
	}
	//if IE 5+
	if ((document.all)&&(document.getElementById))
	{
		classAttr="className";
	}

return classAttr;
}