function checkLength(str) {
    ret = true;
    if (str.length < 3) {
        alert(alertText);
        ret = false;
    }
    return ret;
}    

