IE7 on windows vista leaves a blank window open, while opening a likn to document.

We are planning for enterprise wide migration from WinXP with IE6 to Win Vista with IE7 (7.0.6001.18000) and facing problems while opening a document link (MS Office Documents) from our intranet application. Once the link is clicked, it opens a new page with a dialog box with options Open, Save and cancel. And if I click Open, it opens the word/ excel document in a seprate window and leaves a blank window open.
I know, there is already a post with same issue on EE forum but I have tried the solutions (tweaking the folder options and checking the target "_blank") mentioned in that but no luck.
Please help !
Regards
Vinit Tyagi
dearvinitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dearvinitAuthor Commented:
I was using the following function to open the documents link.
function OpenDocument(durl)
 {
window.open(durl, "_blank", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));
}
and I have replaced the target from _blank to _top for MS Office documents and its working (i.e opening the documents properly in new window, without leaving a blank page open). The resultant function is like ...

function OpenDocument(durl) {
      var ulen = durl.length;
      var extn = durl.substring(ulen-4, ulen); // extracting the extension
      extn = extn.toLowerCase();
      var word = new RegExp("do"); // for .doc, .dot, .docx, .dotx
      var xcel =  new RegExp("xl"); // for .xls, .xlsx, .xlt, .xltx
      var ppt =  new RegExp("ppt"); // for .ppt and .pptx
if (word.test(extn) || xcel.test(extn) || ppt.test(extn)) //if attachment is an MS office document.
{
window.open(durl, "_top", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));      
}
else
{
window.open(durl, "_blank", "location=0,titlebar=0,menubar=1,resizable=1,left=5, top=5,width=" + (screen.availWidth-20) +",height=" + (screen.availHeight-100));
}}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.