function addRowToTable()
{
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
//First Cell
var cellOne = row.insertCell(0);
var tag = document.createElement('td');
tag.setAttribute('valign','top');
var e1 = document.createElement('select');
e1.setAttribute('name', 'txtRow' + iteration + '1');
e1.setAttribute('size','1');
e1.setAttribute('style','background-color :#EFEECB');
cellOne.appendChild(e1);
// Second Cell
var cellTwo = row.insertCell(1);
var e2 = document.createElement('select');
e2.setAttribute('name', 'txtRow' + iteration + '1');
e2.setAttribute('size', '1');
cellTwo.appendChild(e2);
//Third Cell
var cellThree = row.insertCell(2);
var e3 = document.createElement('select');
e3.setAttribute('name','txtRow' + iteration + '2');
e3.setAttribute('size','1');
cellThree.appendChild(e3);
//Fourth Cell
var cellFour = row.insertCell(3);
var e4 = document.createElement('select');
e4.setAttribute('name','txtRow' + iteration + '3');
e4.setAttribute('size','1');
cellFour.appendChild(e4);
//Fifth Cell
var cellFive = row.insertCell(4);
var e5 = document.createElement('select');
e5.setAttribute('name','txtRow' + iteration + '4');
e5.setAttribute('size','1');
cellFive.appendChild(e5);
//Sixth Cell
var cellSix = row.insertCell(5);
var e6 = document.createElement('select');
e6.setAttribute('name','txtRow' + iteration + '5');
e6.setAttribute('size','1');
cellSix.appendChild(e6);
//Seventh Cell
var cellSeven = row.insertCell(6);
var e7 = document.createElement('select');
e7.setAttribute('name','txtRow' + iteration + '6');
e7.setAttribute('size','1');
cellSeven.appendChild(e7);
//Eighth Cell
var cellEight = row.insertCell(7);
var e8 = document.createElement('textarea');
e8.setAttribute('name','txtRow' + iteration + '7');
e8.setAttribute('rows','1');
cellEight.appendChild(e8);
}