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 hellos = {
    ESP: 'Hola a todos!',
    ENG: 'Hello everybody!'
};

var myLang = 'ESP';

console.log(hellos[myLang]);

```

I don't like putting everything in global scope, and then string accessing window properties; so here is another way to do it.
You can use `eval` for that but this is very bad practice:

```
console.log(eval("myText_" + myLang);

```

I'll suggest to have an object instead:

```
var myLang = "ESP";
var texts = {
    'ESP': "Hola a todos!",
    'ENG': "Hello everyboy!"
};
console.log( texts[ myLang ] );

```