function WindowOpener(filename,width,height) {
        var  calcLeft   = screen.availWidth / 2 - width / 2;
        var  calcTop    = screen.availHeight /2 - (height+22) / 2;
        str = 'width=' + width + ',height=' + height + ',left=' + calcLeft + ',top=' + calcTop + ',toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no';
        view = window.open(filename, "ViewWindow", str);
        view.opener = self;
        //view.location.href = filename;
        view.focus();
}

