Forse qualcosa così

codice:
if (document.getElementbyId('foto1').value!='')
{
    if (document.getElementById('descfoto1').value=='') // no text given
}