﻿var winPrint;
function print(url) {

    url = window.location.toString().substr(0, window.location.toString().lastIndexOf("/") + 1) + url;
    if (ScreenHelper.isFF) {
        window.frames[0].print();
    }
    else {
        winPrint = window.open(url, '', 'left=' + screen.width + ',top=' + screen.height + ',width=1,height=1,toolbar=0,scrollbars=0,status=0');
        winPrint.print();
        winPrint.setTimeout(p_Close, 1000);
    }
}
function p_Close()
{
    winPrint.close();
}
