/**
 * Review is a utility class used to create reviews. 
 *
 */
Review={
	places:null,
	// Submits a request to the reviews/new action, passing thru attributes
	// for a new place
	forNewPlace: function(index) {
		form = $('new_place_form')
	  	form.reset();
	  	// find the result
	  	var place = Review.places[index]
		$('place_name').value=place.name;
	    $('place_address').value=place.address;
	    $('place_city_name').value=place.city_name;
	    $('place_state').value=place.state;
	    $('place_country_code').value=place.country_code;
	    $('place_url').value=place.url;
	    $('place_yahoo_local_url').value=place.yahoo_local_url;
	    $('place_yahoo_local_id').value=place.yahoo_local_id;
	    $('place_lat').value=place.lat;
	    $('place_lng').value=place.lng;
	    form.submit();
	} // forNewPlace
}