You can simply use it like this... (of course substitute the strings with variables where needed)
document["getElementById"]("elementName")["style"]["border"] = "1PX SOLID GREEN";
Which is also easily/usually typed like this of course...
document.getElementById("elementName").style.border = "1PX SOLID GREEN";
Here's another multi-dimensional example...
var myObject = new Object();
myObject["myValue"]["one"] = "first value";
myObject["myValue"]["two"] = "second value";
alert(myObject["myValue"]["two"]); //outputs "second value"
Which could also be written as...
var myObject = new Object();
myObject["myValue"] = {one: "first value", two: "second value"};
alert(myObject["myValue"]["two"]); //outputs "second value"