This script could be a fundamental part of almost any website. It consists of three parts: the map component (javascript), the form component (javascript) and the back-end php script that sends the actual email. Any of these three components could be used separately.
Feature List
A map of any size powered by the google maps API . The map is automatically centered on a desired address. A pointer is added to the desired address along with an information box listing important contact data (any HTML is possible here). An Ajax-Based contact form secured against SPAM bots. Built in input validation (with visual aids based on Human Computer Interfaces research). Defensive “Submit” button. Initially designed for Prototype.js, but hell yes, a JQuery Version is also included!
Version 1.1, released 28.03.2010
Email address validation by JS
Version 1.2, released 24.04.2010
Added JQuery Support