function trimText() {
    $("input[@type=text]").each(function() {
        var textField = jQuery(this);
        var currentValue = textField.val();
        textField.val(trim(currentValue));
    });
}

function trim(stringToTrim) {
    return stringToTrim.replace(/^\s+|\s+$/g, "");
}
function initializePhoneNumberFields() {
    if (!document.getElementById("mobilePhone").value) {
        document.getElementById("mobilePhone").value = "8";
    }
    if (!document.getElementById("homePhone").value) {
        document.getElementById("homePhone").value = "8";
    }
}
