/**
 * Created by JetBrains PhpStorm.
 * User: Exlord
 * Company: AzarIPT
 * Date: 9/13/11
 * Time: 8:23 AM
 */
function printContent(content, path) {
    newWin = window.open("", '', "status=0,toolbar=0,menubar=1,location=0,height=500,width=700,scrollbars=1");
    newWin.document.write("<h1 align='center'> نتایج جستجو </h1>");
    newWin.document.write($(content).html());
    newWin.document.write("<script Language='javascript' type='text/javascript'>window.print();</script> ");
}
function prep4print(table) {
    table = jQuery(table);
    var tr = $(table).find('td.imgTD').parent();
    $(table).find('td.imgTD').remove();
    $(tr).find('td').attr('colspan', '2');
    $(table).find('input[type=checkbox]').remove();
    $(table).find('a#edit').remove();
    $(table).find('#expire_div').remove();
    $(table).find('.h3inresult').each(function() {
        var a = $('a', this);
        $(this).html($(a).html());
    });
    $('body', table).css({
        'font-family': 'tahoma',
        'direction':'rtl',
        'font-size': '11pt'
    });
    (table).css({
        'border-bottom': 'solid 1px #000000',
        'width': '100%',
        'margin': '2px',
        'font-size': '11pt',
        'padding': '2px',
        'font-family': 'tahoma',
        'direction':'rtl'
    });

    return table;
}
