
function aledim(obj, maxW) {
w=obj.width; 
if(w>maxW) { 
w=maxW; 
}; 
obj.width=parseInt(w,10); 
}
