function imgCheck(aForm) { if ((aForm.bild.value.length == 0) || (aForm.bild.value == null)) { return true; } else { alert("nä."); return false; } }