You have the wrong number of parameters in your call. It looks like the html parameter is no longer being used? Try changing this:
function creatediv(id, html, width, height, left, top, opacity)
To this:
function creatediv(id, width, height, left, top, opacity)