Hi there shachi,
The problem is that...
Code:
document.getElementById("obj").style.prop = propval;
...will not work. 
I would suggest that, instead, you set the style changes as a class in your style sheet and then callthat...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
#somediv {
width:100px;
height:100px;
}
.stuff {
border:1px solid red;
}
-->
</style>
<script type="text/javascript">
<!--
function stylize(obj,propval){
document.getElementById(obj).className=propval;
}
window.onload=function(){
stylize('somediv','stuff');
}
//-->
</script>
</head>
<body>
<div id="somediv"></div>
</body>
</html>
coothead
Bookmarks