function textLimit(limitField, limitNum) {
    el = document.getElementById(limitField);
    if (el.value.length > limitNum) {
        el.value = el.value.substr(0, limitNum);
        alert("You have exceeded the character limit for this field and your entry has been cut to "+limitNum+" characters");
    }
}
