function confirmAction(message) { 
    var agree=confirm(message);
    if (agree) {
       
       document.forms[0].submit();
    }
    else {
       
        this.value='Do Not Delete';
    }
}


function GenericExportToExcel(myTable) {
	var x=myTable.rows
	var xls = new ActiveXObject("Excel.Application")
	xls.visible = true
	xls.Workbooks.Add
	for (i = 0; i < x.length; i++) {
			var y = x[i].cells
			for (j = 0; j < y.length; j++)	{
				xls.Cells( i+1, j+1).Value = y[j].innerText
			}
	}
}


