function detectIE()
{
 var agent = navigator.userAgent.toLowerCase();
 var i = agent.indexOf('msie');

 if (i != -1) return parseFloat(agent.slice(i+5))
 return false;
}

function viewdiv(data)
{
 var block = document.getElementById('downloaddiv');
 var IEVersion = detectIE();
 if(IEVersion)
 {
   block.outerHTML += data;
 }
  else
 {
  block.innerHTML += data;
 }
 document.getElementById('downloadtext').style.display = "none";
}

function downloadfunc()
{
jQuery.post('41/handler', { lib: 0 }, viewdiv);
} 

