
function displayAsMain(name) {
	var holder = $('main');
	if(holder==null) return;
	holder.src = name;
}

/* source: which page the click came from
   pid: property id, if any */
function contactusClicked(source, pid) {

	params = $H({ source: source });
	if(pid!=null) {
		params = params.merge({ pid: pid });
	}

	new Ajax('/property-to-rent/contactus/',
		{
			method: 'get',
			parameters: params
		}
	).request();

	return true;
}