	
	function onValidMoreInfo()
	{
		// this is essentially a front end to calling sendContactRequest() -
		// so format the arguments:
		//	sendContactRequest($user_name, $user_email, $subject, $type, $type_id, $type_desc, $related_id, $message, $comment);
		//		$user_name		- user provided name
		//		$user_email		- user provided email address
		//		$subject		- user's email subject line
		//		$type			- internal type identifier:  'moreinfo-featured', 'moreinfo-mls', .....
		//		$type_id		- internal id of the particular type instance: listing_id, building_id, .....
		//		$type_desc		- internal description of the particular type instance: listing mls number w/address, building address
		//		$related_id		- internal id of record related to particular type instance (if needed/used): building_id for listing, ....
		//		$message		- email message body
		//		$user_comment	- the user entered text to run the spam check on (should be the same as or included within $message)
		
		var user_name = document.getElementById("txtMoreInfoName").value;
		var user_email = document.getElementById("txtMoreInfoEmail").value;
		var subject = "More Info Request from the website";
		var type = "";
		var type_id = ListingId;
		var type_desc = ListingDesc;
		var related_id = BuildingId;

		var wouldLikeToIndex = document.getElementById("selectMoreInfoLikeTo").selectedIndex;
		var wouldLikeToText = jQuery(document.getElementById("selectMoreInfoLikeTo").options[wouldLikeToIndex]).text();
		var wouldLikeToType = document.getElementById("selectMoreInfoLikeTo").value;

		switch (wouldLikeToType)
		{
			default:
			case "info":
				type = "moreinfo-" + MoreInfoListingType;
				subject = "More Info Request from the website";
				break;
				
			case "viewing":
				type = "view-" + MoreInfoListingType;
				subject = "Property Viewing Request from the website";
				break;
		}
		
		var message = "Phone: " + document.getElementById("txtMoreInfoPhone").value + "<br>";
		message += ("Would like to: " + wouldLikeToText + "<br>");
		message += ("Working with a Realtor: " + (document.getElementById("checkboxMoreInfoWithRealtor").checked ? "Yes" : "No") + "<br>");
		//message += ("MLS #: " + ListingMlsNumber + "<br>");
		var comments =  document.getElementById("txtMoreInfoComments").value;
		message += ("Comments: " + comments + "<br>");
		
		var user_comment = "";

		var updateString = "?name=" + escape(user_name);
		updateString += ("&email=" + escape(user_email));
		updateString += ("&subject=" + escape(subject));
		updateString += ("&type=" + type);
		updateString += ("&typeid=" + type_id);
		updateString += ("&typedesc=" + escape(type_desc + " (MLS # " + ListingMlsNumber + ")"));
		updateString += ("&relatedid=" + related_id);
		updateString += ("&message=" + escape(message));
		updateString += ("&comment=" + escape(comments));

	 	GDownloadUrl(DomainUrl + "/moreinfo_update.php" + updateString, function (data, responseCode){
			if (responseCode == 200 && data.search(/^[<]h3.*there was an error/i) < 0)
			{
				var xml = GXml.parse(data);

				// divContactForm
				jQuery('#divContactForm').hide();
				// divContactResult
				jQuery('#divContactResult').text(jQuery(xml).find('results > request').text());
			}
			else
			{
				alert("error: " + data);
			}
		});
	}

