﻿$(document).ready(function() {
    $('.form #firstName').attr('value', 'First Name');
    $('.form #lastName').attr('value', 'Last Name');
    $('.form #companyName').attr('value', 'Company Name');
    $('.form #city').attr('value', 'City');
    $('.form #state').attr('value', 'State');
    $('.form #email').attr('value', 'Email Address');
    $('.form #phone').attr('value', 'Phone Number');
    $('.form label.txtLabel').css({'display' : 'none'});
    $('.form input').focus(function() {
        if ($(this).val() == 'First Name') { $(this).val('') };
        if ($(this).val() == 'Last Name') { $(this).val('') };
        if ($(this).val() == 'Company Name') { $(this).val('') };
        if ($(this).val() == 'City') { $(this).val('') };
        if ($(this).val() == 'State') { $(this).val('') };
        if ($(this).val() == 'Phone Number') { $(this).val('') };
        if ($(this).val() == 'Email Address') { $(this).val('') };
    });
    $('.form input').blur(function() {
        if ($('.form #firstName').val() == '') { $(this).val('First Name') };
        if ($('.form #lastName').val() == '') { $(this).val('Last Name') };
        if ($('.form #companyName').val() == '') { $(this).val('Company Name') };
        if ($('.form #city').val() == '') { $(this).val('City') };
        if ($('.form #state').val() == '') { $(this).val('State') };
        if ($('.form #phone').val() == '') { $(this).val('Phone Number') };
        if ($('.form #email').val() == '') { $(this).val('Email Address') };
    });
});