aAllowedMethods = [ "display", "visibility" ];

show = function( mId, sMethod )
{
	sMethod = sMethod || "display";

	if( !aAllowedMethods.in_array( sMethod ) )
		return false;

	if( mId instanceof Array )
		for( var i = 0; i < mId.length; ++i )
		{
			oElement = document.getElementById( mId[ i ] );
			if( oElement )
				oElement.style[ sMethod ] = ( sMethod == "display" ? "block" : "visible" );
		}
	else
	{
		oElement = document.getElementById( mId );
		if( oElement )
			oElement.style[ sMethod ] = ( sMethod == "display" ? "block" : "visible" );
	}
}

hide = function( mId, sMethod )
{
	sMethod = sMethod || "display";

	if( !aAllowedMethods.in_array( sMethod ) )
		return false;

	if( mId instanceof Array )
		for( var i = 0; i < mId.length; ++i )
		{
			oElement = document.getElementById( mId[ i ] );
			if( oElement )
				oElement.style[ sMethod ] = ( sMethod == "display" ? "none" : "hidden" );
		}
	else
	{
		oElement = document.getElementById( mId );
		if( oElement )
			oElement.style[ sMethod ] = ( sMethod == "display" ? "none" : "hidden" );
	}
}

Array.prototype.in_array = function( sNeedle )
{
	for( var i = 0; i < this.length; ++i )
		if( this[ i ] == sNeedle )
			return true;
	return false;
}

String.prototype.ucFirst = function ()
{
	return this.substr(0,1).toUpperCase() + this.substr(1,this.length);
};
