code: function(style)
  	{
  		if (style != null)
  		{
  			var pairs = style.split(';');
  			var stylename = pairs[0];
  			
  			if (stylename.indexOf('=') < 0)
  			{
  				return stylename;
  			}
  		}
  				
  		return '';
  	}
docs: Function: getStylename
  
  Returns the stylename in a style of the form [(stylename|key=value);] or
  an empty string if the given style does not contain a stylename.
  
  Parameters:
  
  style - String of the form [(stylename|key=value);].