/**
 * testar se a string s passada de parametro esta vazia ou nao
 * @type void
 * @param s recebe a string a ser testada
 * @type  s str
 *
 * @return bool
 */
function isEmpty(s) {
  var re = /\s/g;
  var s  = s.replace( re , "" );

  RegExp.multiline = true;

  // validação tambem para os campos que contem o atributo 'float'
  return ( s.length == 0 || s == '0,0' ) ? true : false;
}