function PrintElem(elem)
{
var printEle = document.getElementById("print").innerHTML;
var printWin = window.open("");
printWin.document.write(printEle);
printWin.print();
printWin.close();
// Popup($('<div/>').append($(elem).clone()).html());
}
function Popup(data)
{
var mywindow = window.open('', 'print', 'height=1000,width=1000');
mywindow.document.write('<html><head><title>Order Detail</title>');
mywindow.document.write('<link rel="stylesheet" href="" type="text/css" />');
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.print();
// mywindow.close();
return true;
}
{
var printEle = document.getElementById("print").innerHTML;
var printWin = window.open("");
printWin.document.write(printEle);
printWin.print();
printWin.close();
// Popup($('<div/>').append($(elem).clone()).html());
}
function Popup(data)
{
var mywindow = window.open('', 'print', 'height=1000,width=1000');
mywindow.document.write('<html><head><title>Order Detail</title>');
mywindow.document.write('<link rel="stylesheet" href="" type="text/css" />');
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.print();
// mywindow.close();
return true;
}