Firefox - object has no properties

This code gives an error "imgObj.parentNode.id has no properties:

(code)

function setSelectedElem(evt) {
var imgObj = (evt.imgObj) ? evt.imgObj : evt.srcElement;
// var imgObj = (evt.imgObj) ? evt.target : evt.imgObj;
var imgObj = evt.target
// alert("evt.imgObj = " + evt.imgObj + “.”);
alert("imgObj = " + imgObj + “.”);
if (imgObj.parentNode.id.indexOf(“dragimg”) != -1) {
selectedObj = imgObj.parentNode.style;
setZIndex(selectedObj,100);
return;
}
selectedObj = null;
return;
}

(/code)

The commented out lines were part of the original IE focused code. The alerts were my attempt to determine if the variables had values (they did). This is part of a Firefox acceptable recode of the IE code that products the results demonstrated here: http://www.sacu.com/locations/locate.asp

Thanks in advance for your help.