// Standard result format - "type: name(version)[options]".
// If no version or options, leave them out.

includeScript("_init");

function result(bShowType,bShowVersion,bShowOptions)
{
    var sResult="";

    if(bDetected)
    {
        if(bShowType)
        {
            sResult+=sType+": ";
        }
        sResult+=sName;
        if(bShowVersion&&sVersion!="")
        {
            sResult+="("+sVersion+")";
        }
        if(bShowOptions&&sOptions!="")
        {
            sResult+="["+sOptions+"]";
        }
    }

    return sResult;
}
