function changed2 (mytext2,keytotal)
{
	if(typeof(mytext2) != 'undefined' && mytext2 != null)
	{
		var s = mytext2.name;
		var index;
		
		if (s.indexOf('[') == -1)
		{
			index = 0;
		}
		else
		{
			index = s.substring( s.indexOf('[')+1,s.indexOf(']') );
		}
		
		checkit2(mytext2,index,keytotal);
	}
}

function checkit2(mytext2,zindex,keytotal)
{
	if (!(zindex >= 0))
	{
		zindex = '';
	}

	var s = mytext2.name;
	var zindex;
	
	if (s.indexOf('[') == -1)
	{
		zindex = 0;
	}
	else
	{
		zindex = s.substring( s.indexOf('[')+1,s.indexOf(']') );
	}
	if (mytext2.value.length > keytotal)
	{
		mytext2.value = mytext2.value.substring(0,keytotal);
	}
	if (document.getElementById('charCountB'+zindex))
	{
		document.getElementById('charCountB'+zindex).innerHTML = mytext2.value.length;
	}
}

window.onload=function()
{
	if(document.getElementById('event_title') != null)
	{
		changed2(document.getElementById('event_title'),100);
		document.getElementById('event_title').focus();
	}
}

