function ftest (P1, P2) {
"use strict";
document.getElementById(String(P1)).display = String(P2);
}
document.getElementById(String(P1))
use the parameter P1 as the ObjectID;
display = String(P2)
use parameter P2 as the ObjectStyle Property;
this way manner to avoid clutter when passing values at the workflow::
onclick="ftest(objectname,objectproperty)"
instead of
onclick="ftest('objectname','objectproperty')"
the result would be
Object is Null or Unknown Property ?
when trying to make things clean at the html code;