//Add rows to a table
    row_no=27;//The number of the row under which to start adding rows
    counter=1;//Already have one text box for other interest on the form
    maxAdds=6;//Number of text boxes the user can add
    rowMax=row_no + maxAdds;
    function addRow(tbl,row){
        //so that user can only add 3 rows
        if(row_no<=rowMax){   
		counter++;
        var textbox='<input type="text" class="txtProfile" name="profileInterests-Other'+counter+'" id="profileInterests-Other'+counter+'" size=""/>';//for text box
        
        //var remove= '<a href="#" onclick="removeRow(\''+ tbl +'\',\'' + row_no + '\')"/>Remove</a>'; //for the text which is used to remove the current row by using the function removeRow(..,..)
        text = "Other Interest "+counter;


        var tbl = document.getElementById(tbl);//to identify the table in which the row will get insert
        var rowIndex = document.getElementById(row).value;//to identify the row after which the row will be inserted
        try {
            var newRow = tbl.insertRow(row_no);//creation of new row
            var newCell = newRow.insertCell(0);//first  cell in the row
            newCell.innerHTML = text;//insertion of the 'text' variable in first cell
            var newCell = newRow.insertCell(1);//second cell in the row
            newCell.innerHTML = textbox// + " " + remove;//insertion of the text box and the remove text using their variable
            row_no++;
        } catch (ex) {
            alert(ex); //if exception occurs
        }
           
    }
    if(row_no>=rowMax)//if the row contain 3 textbox, the add button will disapper
    {
        document.getElementById("add").style.display="none";
    }                       
}