function check_form_validator()
{
var property = document.contact.property.value;
var units = document.contact.units.value;
var company = document.contact.company.value;
var contact = document.contact.contact.value;
var city = document.contact.city.value;
var state = document.contact.state.value;
var zip = document.contact.zip.value;
var phone = document.contact.phone;
var email = document.contact.email.value;



 if (property == "")
  {
    alert("Please provide a value for the \"Property\" field.");
    document.contact.property.focus();
    return (false);
  }

 if (units == "")
  {
    alert("Please provide a value for the \"Number of Units\" field.");
    document.contact.units.focus();
    return (false);
  }

 if (company == "")
  {
    alert("Please provide a value for the \"Company\" field.");
    document.contact.company.focus();
    return (false);
  }

 if (contact == "")
  {
    alert("Please provide a value for the \"Contact\" field.");
    document.contact.contact.focus();
    return (false);
  }

 if (city == "")
  {
    alert("Please provide a value for the \"City\" field.");
    document.contact.city.focus();
    return (false);
  }

stateFilter = /^(AK|AL|AR|AZ|CA|CO|CT|DC|DE|FL|GA|HI|IA|ID|IL|IN|KS|KY|LA|MA|MD|ME|MI|MN|MO|MS|MT|NB|NC|ND|NH|NJ|NM|NV|NY|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VA|VT|WA|WI|WV|WY)$/i;
if (!stateFilter.test(state))
  {
    alert("Please provide a valid value for the \"State\" field.");
    document.contact.state.focus();
    return (false);
  }
  
zipCodeFilter = /\d{5}(-\d{4})?/;
if (!zipCodeFilter.test(zip))
  {
    alert("Please provide a valid value for the \"Zip Code\" field.");
    document.contact.zip.focus();
    return (false);
  }

// Valid phone number check
var digits = "0123456789";
var phoneNumberDelimiters = "()- ";
var validWorldPhoneChars = phoneNumberDelimiters + "+";
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";
    
    for (i = 0; i < s.length; i++)
    {   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
s=stripCharsInBag(strPhone,validWorldPhoneChars);
return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}

if ((phone.value==null)||(phone.value=="")){
		alert("Please Enter your Phone Number")
		phone.focus()
		return false
	}
if (checkInternationalPhone(phone.value)==false){
		alert("Please Enter a Valid Phone Number")
		phone.focus()
		return false
	}

var emailFilter=/^.+@.+\..{2,3}$/;
 
if (!emailFilter.test(email))
  {
    alert("Please provide a valid email address.");
    document.contact.email.focus();
    return (false);
  }


document.contact.action="contact.php";
document.contact.submit()
} 

function quotes() {
 
var quotes = new Array(13);
quotes[0] = '<span class=\"pullquotes\"><p>&quot;The resident screening process is now more of a science than an art. AmRent makes the process objective and verifiable. The Decision program provides data that helps us make resident screening decisions in accordance with our standards of admission  in a matter of minutes&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Ron Burson</span><br><span class="quoted_company">Vice President & Treasurer, Gorsuch Management</span></p></span>';
quotes[1] = '<span class=\"pullquotes\"><p>&quot;If for some reason we need to alter the way we screen potential residents, we know that the Decision Program allows us to set up our own criteria to best suit the market and adhere to Fair Housing rules.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Rebecca Perry Damsen</span><br><span class="quoted_company">Vice President<br>Roger C. Perry & Co.</span></p></span>';
quotes[2] = '<span class=\"pullquotes\"><p>&quot;On a scale of 1 to 10, with 10 being the highest, I give AmRent a 12. They take care of everything I need. They provide this level of service to all customers, not just the Wallick Companies.&quot; </span><br /><br /><span class=\"arght\"><span class=\"quoted_name\">Todd Bowers</span><br /><span class=\"quoted_company\">Vice President of Information Services, The Wallick Companies</span></p></span>';
quotes[3] = '<span class=\"pullquotes\"><p>&quot;We will continue to furnish our information on a monthly basis, and strongly urge other property management companies to also contribute to the AmRent Rental Xchange program. It is extremely beneficial to our industry.&quot; </span><br /><br /><span class=\"arght\"><span class=\"quoted_name\">Karen Harrison, President</span><br /><span class=\"quoted_company\">The K & D Group, Inc.</span></p></span>';
quotes[4] = '<span class=\"pullquotes\"><p>&quot;AmRent provides LumaCorp Inc. with a full range of accurate and complete resident screening information, enabling me to efficiently process applications and quickly fill vacancies.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Phyllis Metevier</span><br><span class="quoted_company">Applicant Screening Manager, LumaCorp Inc.</span></p></span>';
quotes[5] = '<span class=\"pullquotes\"><p>&quot;Our screening process has been greatly enhanced by AmRent\'s services. We have found your database of rental information tremendously valuable. We will continue to furnish our information.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Jerry Sawicki</span><br><span class="quoted_company">Owner, Sawicki Realty </span></p></span>';
quotes[6] = '<span class=\"pullquotes\"><p>&quot;AmRent reports are received in an easy-to-read format that is used by all of my office staff. AmRent has saved us numerous hours on processing applications with poor rental histories. The skips and evictions are very helpful because they are updated before court judgements can even be obtained.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Renee S. Harvin</span><br><span class="quoted_company">Franklin Mill Apartments</span></p></span>';
quotes[7] = '<span class=\"pullquotes\"><p>&quot;We have always found AmRent to offer timely and efficient services. We recently began using CBCWeb, which gives each manager the ability to pull credit reports via the Internet and print them conveniently from their own desks.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Mary Lee Scott</span><br><span class="quoted_company">R. J. lloyd and Company </span></p></span>';
quotes[8] = '<span class=\"pullquotes\"><p>&quot;AmRent is an excellent service provider for us. Their customer service and attention to detail is outstanding, and the criminal, credit and rentald ata provided helps us make better rental decisions.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Donna Stevens</span><br><span class="quoted_company">JWC Development Company </span></p></span>';
quotes[9] = '<span class=\"pullquotes\"><p>&quot;AmRent\’s combination of previous landlord, credit and criminal data is unmatched in the industry and has led to immediate cost savings for us and a better community for our residents.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Sharon Lowe</span><br><span class="quoted_company">Director of Compliance, Miller-Valentine Group </span></p></span>';
quotes[10] = '<span class=\"pullquotes\"><p>&quot;We have tested several resident screening companies in the past, and AmRent has stood above the competition in terms of customer service and providing quality data that helps us make decisions effectively and efficiently.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Amy Blessard</span><br><span class="quoted_company">Assistant Regional Director, National Church Residences</span></p></span>';
quotes[11] = '<span class=\"pullquotes\"><p>&quot;In today\’s competitive marketplace, the quicker I can approve or deny a potential renter\’s application, the quicker I ensure profitability. With AmRent\’s resident screening services, I know I\’m making sound decisions based on good, solid data.”&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">David Holzer</span><br><span class="quoted_company">President and Partner, Commercial One Property Services</span></p></span>';
quotes[12] = '<span class=\"pullquotes\"><p>&quot;I have a 10-year relationship with AmRent and during that time have found their customer service and products to be unmatched.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Cindy Vitou</span><br><span class="quoted_company">Area Manager, Blue River Property Management</span></p></span>';
quotes[13] = '<span class=\"pullquotes\"><p>&quot;CBC Companies has the best resident screening process available. One of my favorite parts about it is cost because every nickel counts. We save a lot of nickels with CBC.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Michael Henderson</span><br><span class="quoted_company">Regional Property Manager, Charleston Square Apartments</span></p></span>';
quotes[14] = '<span class=\"pullquotes\"><p>&quot;The criminal and credit databases are critical to our resident screening process. With AmRent, we know we’re able to find quality residents and offer a safe and secure environment.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Diane Sawyer</span><br><span class="quoted_company">Senior Property Manager, Sycamore Square Apartments</span></p></span>';
quotes[15] = '<span class=\"pullquotes\"><p>&quot;RentWise gives me a mathematical, strictly objective evaluation of a prospective resident’s ability to pay rent. It also reduces my exposure to discrimination lawsuits.&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Marty Cohen</span><br><span class="quoted_company">General Managing Partner, H&M Management</span></p></span>';
quotes[16] = '<span class=\"pullquotes\"><p>&quot;There’s nothing more frustrating than a resident who skips town without paying rent. Now that I use AmRent, I’m able to collect bad debt that was nearly impossible to collect in the past&quot;</span><br><br><span class=\"arght\"><span class="quoted_name">Kit Castrucci</span><br><span class="quoted_company">Community Manager, Berkshire Realty Group</span></p></span>';
var n=Math.floor(Math.random()*17); 
document.write('<div id="txt">'+quotes[n]+'</div>')
}




