Need help with document.getElementById(divID).style.left = Variable+px;

[SIZE=“4”]Ok this might be a noob-question but I don’t know anyone that know how to do this.
document.getElementById(divID).style.left = Variable+px; <–(This is wrong but it shows what I want to do)

The Variable+px is a variable with a number plus px after.
I want to use this so that I can change the placement of pictures and stuff on my site trough CSS.
I cant get this to work so please help me!

Love
Zalastax[/SIZE]


var leftpos = 200;
document.getElementById('divID').style.left = leftpos + 'px';