// JavaScript Document ///// Monirak Ngy
window.onload = function()
{
  if (document.getElementsByTagName) 
  {
    // Get all the tags of type object in the page.
      var flObject = document.getElementsByTagName("object");
      for (i=0; i<flObject.length; i++) 
      {
        // Get the HTML content of each object tag
        // and replace it with itself.
        flObject[i].outerHTML = flObject[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() 
{
  if (document.getElementsByTagName) 
  {
    //Get all the tags of type object in the page.
    var flObject = document.getElementsByTagName("object");
    for (i=0; i<flObject.length; i++) 
    {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      flObject[i].outerHTML = "";
    }
  }
}

