function CreateFlash(targetElement, flashData, flashWidth, flashHeight) {
  var innerHtml;

	obj = document.getElementById(targetElement);
  
  innerHtml = '<object type="application/x-shockwave-flash" data="'+flashData+'" width="'+flashWidth+'" height="'+flashHeight+'">';
  innerHtml += '<param name="movie" value="'+flashData+'" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" />';
  innerHtml += '<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" onclick="window.open(this.href,\'_blank\');return false;"><img src="noflash.gif" width="'+flashWidth+'" height="'+flashHeight+'" alt="Your browser doesn\'t support Flash! Click here to upgrade to Flash free." /></a>';
  innerHtml += '</object>';
  
  obj.innerHTML = innerHtml;
}