address = '7915 Westglen Dr Houston Texas 77063';
function initialize() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		map.addControl(new GMapTypeControl());
		map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(10,40)));
		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);
				}
			} );
	}
}
function showPic (whichpic, text) {
	if (document.getElementById) {
		document.getElementById('propertyimage').src = whichpic.href;
		document.getElementById('imageCaption').innerHTML = text + "<br />";
		return false;
	} else {
		return true;
	}
}
function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

function popitup(url) {
	newwindow=window.open(url,'appointment','height=470,width=270,resizable=no,menubar=no,toolbar=no,status=no');
	if (window.focus) {newwindow.focus()}
	return false;
}