Ready to Tour? Fill out the form below and a leasing agent will contact you.
");
}
}
});
if (defaultSource == 0)
$('#usersource').val('');
else if (defaultSource)
$('#usersource').val(defaultSource);
else
$('#usersource').val('');
if (disableReferralTracking.toLowerCase() != 'true' && matchedSourceId) {
$('.contact-us-enhanced #usersource').val(matchedSourceId);
$('.contact-us-enhanced #usersourceDiv').hide();
}
$('.contact-us-enhanced #btnEnhSubmit').on('click', function () {
if (f_validateFields()) {
f_enhSubmit();
}
});
});
function f_validateFields() {
$('.contact-us-enhanced .required-group input').each(function() {
if ($(this).val() == '') {
var msg = $(this).attr("aria-label");
$(this).attr("aria-invalid", "true")
$(this).addClass('validate-field');
}
else {
$(this).removeAttr("aria-invalid");
$(this).removeClass('validate-field');
}
});
$('.contact-us-enhanced .required-group input[type="checkbox"]').each(function() {
if ($(this).is(":not(:checked)")) {
var msg = $(this).attr("aria-label");
$(this).attr("aria-invalid", "true")
$(this).addClass('validate-field');
$("label[for=" + $(this).attr("id") + "]").addClass('validate-field');
}
else {
$(this).removeAttr("aria-invalid");
$(this).removeClass('validate-field');
$("label[for=" + $(this).attr("id") + "]").removeClass('validate-field');
}
});
$('.contact-us-enhanced .required-group textarea').each(function () {
if ($(this).val() == '') {
var msg = $(this).attr("aria-label");
$(this).attr("aria-invalid", "true")
$(this).addClass('validate-field');
}
else {
$(this).removeAttr("aria-invalid");
$(this).removeClass('validate-field');
}
});
$('.contact-us-enhanced .required-group select').each(function () {
if ($(this).val() == '') {
var msg = $(this).attr("aria-label");
$(this).attr("aria-invalid", "true")
$(this).addClass('validate-field');
}
else {
$(this).removeAttr("aria-invalid");
$(this).removeClass('validate-field');
}
});
if ($('.contact-us-enhanced .validate-field').length == 0)
return true;
else {
$('.validate-field:first').focus();
return false;
}
}
function f_enhBuildBedRoomSelect() {
var bathRooms = 0;
var bedRooms = 0;
var countUnit = 1;
for (var i = 0; i ' + str + '');
} catch(err) {
//This error typically happens when it cannot find the str and consaquently cannot find the key.
}
bathRooms = currentbathRooms;
bedRooms = currentbedRooms;
countUnit++;
}
}
}
function f_getCookie(cookieName) {
var cookieValue = document.cookie;
var cookieStart = cookieValue.indexOf(" " + cookieName + "=");
if (cookieStart == -1) {
cookieStart = cookieValue.indexOf(cookieName + "=");
}
if (cookieStart == -1) {
cookieValue = null;
}
else {
cookieStart = cookieValue.indexOf("=", cookieStart) + 1;
var cookieEnd = cookieValue.indexOf(";", cookieStart);
if (cookieEnd == -1) {
cookieEnd = cookieValue.length;
}
cookieValue = unescape(cookieValue.substring(cookieStart, cookieEnd));
}
return cookieValue;
}
function f_enhValidPhone(b) {
var a = window.event ? b.keyCode : b.which;
if (internationalProperty == 'true' && $('#dayPhone1').val().length == 0 && b.shiftKey && b.keyCode == 43)
return true;
if (a == 0 || a == 8)
return true;
if (a > 47 && a