var title = extension.getAttributeValueByName("title");
var id = extension.getAttributeValueByName("id");
var value = extension.getAttributeValueByName("value");
var maxValue = extension.getAttributeValueByName("maxValue");
var width = extension.getAttributeValueByName("width");
var height = extension.getAttributeValueByName("height");
var barImage = extension.getAttributeValueByName("tile");
var suffix = extension.getAttributeValueByName("suffix");
if(title!=null && id!=null)
{
if(barImage==null)
{
barImage = "/OpenForum/Extensions/BarField/yellow-bar.png";
}
if(suffix==null)
{
suffix="";
}
data = "
"+title+"
";
data += ""
return data;
}
else
{
return "Invalid Tag. Missing title or id attribute.";
}