function tryToDownload(url)
{
oIFrm = document.getElementById(\'myIFrm\');
oIFrm.src = url;
// alert(url);
// url=escape(url);
setT
That's because you are calling the function, and using the return value in the setTimeout call. Wrap it in an anonymous function so that it's called by setTimeout:
function tryToDownload(url) {
oIFrm = document.getElementById('myIFrm');
oIFrm.src = url;
// alert(url);
// url=escape(url);
setTimeout(function() { deletefile(url); }, 25000);
}