ATTENZIONE AGLI APICI DOPPI:

var objCampoMod = document.getElementById("idCampoMod");

è una stringa e va scritta fra apici.
ciao