function submitWarranty(){
	var form = document.warrantyForm;
	var errorMessage = "";
	
	if($('#name').val() == '') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#name').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#address').val() == '') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#address').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#number').val() == '') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#number').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#email').val() == '') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#email').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        } else if($('#community').val() == '') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#community').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#closedate').val() == '' || $('#closedate').val() == 'MM/YYYY') {
            $('#warranty_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#closedate').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        } else {
            $('#warrantyArea').fadeOut();
            $.post('admin/inc/_handleWarrantyRequest.php?action=add&' + $('#warrantyForm').serialize(), function(data){
                $('#warrantyArea').html(data).fadeIn();   
            });
	}	
}

function submitRequestInfo(){
	var form = document.requestInfoForm;
	var errorMessage = "";
	
	if($('#first_name').val() == '') {
            $('#request_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#first_name').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#last_name').val() == '') {
            $('#request_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#last_name').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        }else if($('#email').val() == '') {
            $('#request_message').text("Please fill in all boxes marked with a red *.").slideDown();
            $('#email').css('backgroundColor', 'lightyellow').effect("pulsate", { times:2 }, 1000);
        } else {
            	document.requestInfoForm.submit();
	}	
}
