function isEmpty(val) { if (val.length > 2) { return true; } else { return false; } }
function isBlank(val) { if (val.length == 0) { return true; } else { return false; } }
function isAlphaNumeric(val) { if (val.match(/^[a-zA-Z0-9]+$/)) { return true; } else { return false; }  }

function isURL(val) { if (val.match(/^(ftp|http|https):\/\/([.a-zA-Z0-9_-])*\.(aero|arpa|biz|cat|com|coop|edu|info|int|jobs|mobi|museum|name|net|org|pro|travel)+/)) { return true; } else { return false; }  }
function isSpecialChar(val) { if (val.match(/^[\s\w-_]+$/)) { return true; } else { return false; }  }

function isEmailAddress(val) {
    var regex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
    if (! val.match(regex)) {
    return(true);
    }else{
    return (false);
    }
}

function matchSpecialChar(val) { if (val.match(/^[\s\w-\/_:,]+$/)) { return true; } else { return false; }  }