var dom = true;
if (!document.getElementById) dom = false;
if (!document.getElementById && document.all) {document.getElementById = document.all; dom = true;}

function isEmpty(e) {
    return ((e == null) || (e.length == 0));
}
function isEmail(mail) {
    re = /^[_a-zA-Z0-9\.\-]+@[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,7}$/;
    return mail.search(re) == 0;
}
function isInt(value){
  if (parseInt(value).toString() == value.toString() && !isNaN(value)){
    return true;
  } else {
    return false;
  }
}

function isFloat(value){
  return value.search(/^((\d+(\.\d*)?)|((\d*\.)?\d+))$/) == 0;
}

