function getByClassName()
{
	var c_name=arguments[0];
	var oList=new Array();
	if(arguments.length>1) var rootObj=arguments[1]; else rootObj=document;
	for(var i=0;i<rootObj.childNodes.length;i++)
	{
		if(rootObj.childNodes[i].className==c_name)  oList.push(rootObj.childNodes[i]);
		if(rootObj.childNodes[i].childNodes.length>0) oList=oList.concat(getByClassName(arguments[0],rootObj.childNodes[i]));
	}
	return oList;
}

function removeClassName(obj,clsname)
{
	obj.className=obj.className.replace(' '+clsname,'');
	obj.className=obj.className.replace(clsname,'');
}
