risolto occorre aggiungere in fondo
codice:
function isEmpty(v) {
 if (v == null || v.length == 0) 
{ return true; }
 else
 { return false; } }