function ComparePopup(gridName, value) {
var myGrid = document.getElementById("<%= gridviewSearchResult.ClientID %>");
var oRows = myGrid.rows;
var rawDataRows = new Array();
var inps = myGrid.getElementsByTagName("input");
var hdncounter = document.getElementById("<%= hdnCounter.ClientID %>");
var hdncount = document.getElementById("<%= hidCounter.ClientID %>");
var cell;
var j=0;
for (var i = 0; i < oRows.length; i++) {
var oRow = oRows[i];
if (myGrid.rows(i).cells(0).children[0] != null && myGrid.rows(i).cells(0).children[0].checked == true) {
j = j + 1;
}
}
if (hdncounter != "") {
var counter = parseInt(hdncounter.value);
hdncount.value = j + counter;
}
else {
hdncount.value = j;
}
if (hdncount.value > 3) {
var res = confirm("Since you have selected more than 3 profiles, their profiles will be exported to excel for comparison.");
if (res != true)
return false;
else
return true;
}
}