I want to do the following:
var table = new google.visualization.XXXXX(document.getElementById(divId));
where the X's represent a variable that is set previously.
Just so you know, I'm using Google visualizations here, but I don't think that is necessarily relevant to this question.