Function exportExcel(id){
try
{
var oXL = new ActiveXObject("Excel.Application");
}
catch(e)
{
alert(" Office
1 Office,
2 IE Internet -> -> ->
!");
return ;
}
oXL.Visible = true;
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var sel=document.body.createTextRange();
sel.moveToElementText(id);
sel.select();
sel.execCommand("Copy");
oSheet.Paste();
// 4
oSheet.Cells(1,1).ColumnWidth = 20;
oSheet.Cells(1,2).ColumnWidth = 30;
oSheet.Cells(1,3).ColumnWidth = 5;
oSheet.Cells(1,4).ColumnWidth = 20;
oXL.Range("a1:d1").MergeCells = true;
oSheet.Cells(1,1).Value =document.getElementById("stat_title").innerText;
oXL.Range("a1:d1").Select;
oXL.Selection.HorizontalAlignment = -4108;
oXL.Selection.Font.Bold = true;
oXL.Selection.Font.Size = 18;
//oXL.execCommand("SaveAs");
//oXL.Quit();
}