if(typeof(pippo)=="undefined") alert("pippo non e' definito")

ciao