<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<div class="item_line_fields" style="width:80px;">
<span>
<img src="http://javascript.ru/forum/images/smilies/smile.gif" border="0" width="28" height="28" class="imgstatus" style="margin-left:26px; margin-top:4px; cursor:pointer;" title="Воскресить" alt="Воскресить" onclick="goancorp(6863,132)"/>ev
</span>
</div>
<div class="item_line_fields" style="width:80px;">
<span>
<img src="http://javascript.ru/forum/images/smilies/smile.gif" border="0" width="28" height="28" class="imgstatus" style="margin-left:26px; margin-top:4px; cursor:pointer;" title="Воскресить" alt="Воскресить" onclick="goancorp(4235,231)"/>ev
</span>
</div>
<div class="item_line_fields" style="width:80px;">
<span>
<img src="http://javascript.ru/forum/images/smilies/smile.gif" border="0" width="28" height="28" class="imgstatus" style="margin-left:26px; margin-top:4px; cursor:pointer;" title="Воскресить" alt="Воскресить" onclick="goancorp(1234,123)"/>ev
</span>
</div>
<script>
function goancorp(a, b) {
alert("Resurrection " + a);
}
function massResurrection() {
var img, images = document.querySelectorAll('img.imgstatus[title="Воскресить"]'), i = images.length;
while (i--) {
images[i].onclick();
}
}
massResurrection();
</script>
</body>
</html>