function parser(fn,params) {
var X, Y, sl, a, ra, link;
ra = /:/;
a = location.href.search(ra);
if (a == 2)
X = 14;
else
X = 7;
sl = "\\";
Y = location.href.lastIndexOf(sl) + 1;
link = 'file:///' + location.href.substring(X, Y) + fn+params;
//location.href = link;
showSwf(link);
}
function showSwf(strUrl) {
     var w_left = ((screen.width - 600)/2);
     var w_top = ((screen.height - 500)/2);
     var w_width = 1270;
     var w_height = 556;
     var strOptions = "location=no";
     strOptions += ",toolbar=no";
     strOptions += ",menubar=no";
     strOptions += ",status=no";
     strOptions += ",scrollbars=no";
     strOptions += ",resizable=yes";
     strOptions += ",left=" + w_left;
     strOptions += ",top=" + w_top;
     strOptions += ",width=" + w_width;
     strOptions += ",height=" + w_height;
     strOptions += ";";
     newWin = window.showModelessDialog(strUrl, window, "resizable:yes;dialogWidth:800px;dialogHeight:640px;");
    // window.open(strUrl)
   //window.location.href = strUrl;
}
