5. November 2009 17:22
var el=document.getElementById('Tab4');
function toggleDisabled(el) {
try {
el.disabled = el.disabled ? false : true;
}
catch(E){}
if (el.childNodes && el.childNodes.length > 0)
{
for (var x = 0; x < el.childNodes.length; x++)
{
toggleDisabled(el.childNodes[x]);
}
}
}
toggleDisabled(el);
var tab = GetTab( "Notizen" );
function GetTab( name )
{
var tabs = crmTabBar.getElementsByTagName("LI");
for( var i = 0 ; i < tabs.length ; i++ )
{
if( tabs[ i ].innerText == name )
return tabs[ i ];
}
return null;
}