i dont know what im doing wrong with this code,
if you guys can help me please do.
the folowing code always gives the alert even when i dont need it.

var scrlWidth= document.getElementById("scrlArea");
var makeMeScrollable= document.getElementById("makeMeScrollable");

alert(scrlWidth.style.width); // it says: 2371px
alert(makeMeScrollable.offsetWidth+"px"); // it says: 601px
if ( scrlWidth.style.width < makeMeScrollable.offsetWidth+"px" )