function isavalidemail(inputValue) {

    var foundAt = false
    var foundDot = false
	
    for (var i=0; i<=inputValue.length; i++) {
      if (inputValue.charAt(i) == "@" ) {
          foundAt = true
      }
      else if (inputValue.charAt(i) == ".") {
          foundDot = true
      }
    }
	
    if (foundAt && foundDot) {
        return true
    }
    else {
        return false
    }
}

function exists(inputValue) {

    var aCharExists = false

    for (var i=0; i<=inputValue.length; i++) {
      if (inputValue.charAt(i) != " " && inputValue.charAt(i) != "") {
          aCharExists = true
          break
      }
    }

    return aCharExists
}

function isavalidphonenumber(inputValue) {
	
    var stripped = inputValue.replace(/[\(\)\.\-\ ]/g, '');
//strip out acceptable non-numeric characters
if (isNaN(parseInt(stripped))) {
   return false;
}

if (!(stripped.length == 10 || (stripped.length == 11 && stripped[0] == '1'))) {
	return false;
}
return true;
}
