function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART) {
  var d = document.getElementById(DivID);
  d.innerHTML = 
     '<OBJECT name="CLM_IMAGE" CLASSID="' + CLSID + '" WIDTH="' + WIDTH + '" HEIGHT="' + HEIGHT + '">'
  +    '<PARAM NAME="FileName" VALUE="' + URL + '">'
  +    '<PARAM NAME="Behavior" VALUE="viewer">'
  +    '<PARAM NAME="DrawBack" VALUE="off">'
  +    '<PARAM NAME="DivNum"   VALUE="4">'
  +    '<PARAM NAME="BgColor"  VALUE="#888888">'
  +    '<EMBED name="CLM_IMAGE" TYPE="application/x-xvlviewer" SRC="' + URL + '" WIDTH="' + WIDTH + '" HEIGHT="' + HEIGHT + '" DrawBack="off" DivNum="4" BgColor="#888888">'
  + '</OBJECT>'
}
