    function ChangeDivId(divName){
        var node = document.getElementById(divName);
        node.id = divName + "0";
        return node.innerHTML;           
    }
	
    function ChangeDivIdRid(divName){
        var node = document.getElementById(divName);
        node.id = divName + "0";
        return node;           
    }
	
	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 BuildMap(divID, boolZoom, boolScroll, boolMapType){
        var typeControl = new GMapTypeControl(); //New map type control bar
        map = new GMap2(document.getElementById(divID)); //Create new map
        map.setCenter(new GLatLng(0,0), 0); //Center map
        if(boolZoom==1) { map.addControl(new GLargeMapControl())}; //Add zoom
        if(boolScroll==1) { map.enableScrollWheelZoom()}; //Enable mouse wheel zoom
        if(boolMapType==1) { map.addControl(typeControl)}; //Add map type control bar
    }
	
	function BuildReason(){
		// Set current list of Status Code responses (12-1-2010)
		reasons[G_GEO_SUCCESS]            = "Success";
		reasons[G_GEO_MISSING_ADDRESS]    = "Missing Address: The address was either missing or had no value.";
		reasons[G_GEO_UNKNOWN_ADDRESS]    = "Unknown Address:  No corresponding geographic location could be found for the specified address.";
		reasons[G_GEO_UNAVAILABLE_ADDRESS]= "Unavailable Address:  The geocode for the given address cannot be returned due to legal or contractual reasons.";
		reasons[G_GEO_BAD_KEY]            = "Bad Key: The API key is either invalid or does not match the domain for which it was given";
		reasons[G_GEO_TOO_MANY_QUERIES]   = "Too Many Queries: The daily geocoding quota for this site has been exceeded.";
		reasons[G_GEO_SERVER_ERROR]       = "Server error: The geocoding request could not be successfully processed.";
	}
	
	function SendAnalytics(strPropType, strStreet){
		// Execute Google Analytics push
		_gaq.push(['_trackEvent', 'ARMI', strPropType, strStreet]);
	}
