// ABQIAAAAjiHEPEmPqdQg-fvCIZkpXRS2zee9qiUpDsl102qAXDPl2K_2TBSs8x4tCji1GjBrlbn5q-_sdHMpJQ
var map;
var geocoder;
var address = "4460 44th St. SW Grand Rapids, Michigan 49512";
function initializeGMaps(){
	if(GBrowserIsCompatible()){
		map = new GMap2(document.getElementById("gMaps"));
        map.setUIToDefault();
		var geocoder = new GClientGeocoder();
		geocoder.getLatLng(
		   address,
		   function(point) {
		     if (!point) {
		       alert(address + " not found");
		     } else {
		       map.setCenter(point, 13);
		       var marker = new GMarker(point);
		       map.addOverlay(marker);
		       marker.openInfoWindowHtml("<img src=\"/images/g_map_icon.png\" border=\"0\" />");
		     }
		   }
		);
	}
}
setTimeout('initializeGMaps()',1000);

function checkForm(){
	var name = $("form[name='contactForm'] :input[name='contactFullName']").val();
	var email = $("form[name='contactForm'] :input[name='contactEmailAddress']").val();
	var comments = $("form[name='contactForm'] :textarea[name='contactComments']").val();
	
	if(name == ""){
		alert("Please provide us with your name.");
		return false;
	}
	if(email == ""){
		alert("Please provide us with your E-Mail address.");
		return false;
	}
	if(email.indexOf(".") == -1 || email.indexOf("@") == -1){
		alert("Please provide us with a valid E-mail address so we can contact you.");
		return false;
	}
	if(comments == ""){
		alert("Please provide us with your comments.");
		return false;
	}
	return true;
}