Question: I'm looking for a solution of adding a value for a style property of an xhtml page component.
It could be control or HTML element both cases suits me fine.

Here's an example of the idea

```
<ctrl:ctrlName ..... style="The_Parameter" />

```

or

```
<div ..... style="The_Parameter" />

```

If someone happens the be familiar with this or any technique that could help, I do appreciate your kind help, BR

Answer: 
```
var myLang = "ESP";

var myText = {
    ESP : "Hola a todos!",
    ENG : "Hello everybody!"
}

console.log(myText[myLang]); // This should trace "Hola a todos!"

```
It is not a good pratice, but you can try using `eval()` function.

```
var myLang = "ESP";

var myText_ESP = "Hola a todos!";
var myText_ENG = "Hello everyboy!";

console.log(eval('myText_' + myLang));

```