The error comes from that you are passing your filename through a GET reqest. To make this work you need to URL encode your filename first:
function ViewAttachment(filePath) {
var w = 600, h = 540;
if (document.all) {
w = document.body.clientWidth;
h = document.body.clientHeight;
}
else if (document.layers) {
w = window.innerWidth;
h = window.innerHeight;
}
var popW = 100, popH = 100;
var leftPos = (w - popW) / 2, topPos = ((h - popH) + 100) / 2;
window.open('../Pages/FileReader.aspx?fileName=' + encodeURI(filePath) +'&PageFrom=REPORTS', '', "scrollbars=yes,resizable=yes,width=" + popW + ",height=" + popH + ",top=" + topPos + ",left=" + leftPos);
return false;
}