assign name of grid object

I have couple grids object in application and I want to make one function for inserting and deleting rows in all grids

something like that

function Delete(gridobject){
if (confirm(“Are you sure?”)) {
gridobject.deleteSelectedRows();
//(how to assign name of grid object)
return true;
} else {
return false;
}
}

Lesnik

p.s.

I finding your job as a best thing since internet and html was invented

Thanks a lot

L

}

You should create grid objects as global variables on the page, then you will be able to pass this objects to custom handler and delete rows.