function u2dp (s)
{
  ret = '';
  for (i=0; i<s.length; i++) {
    charCode = s.charCodeAt(i);
    if ((charCode <= 127) && (charCode != 34) && (charCode != 38) &&
        (charCode != 60) && (charCode != 62))
      ret += s.charAt(i);
    else
      ret += '&#' + charCode + ';';
  }
  return ret;
}

function reg_drop(tab,reg) {
	if (confirm("Tem certeza que quer excluir esse registro?")) {
		window.location = tab + ".php?erase=" + reg;
	}
}