
/**
 * PROPERTIES UPDATE
 * Called from views/properties/index.ctp
 * Searches properties and returns results.
 * 
 */
 
 /*
function propertiesUpdate()
{
	var region		= $('PropertyRegion').getValue();
	var meeting		= $('PropertyMeetingSqFt').getValue();
	var rooms		= $('PropertyRooms').getValue();
	
	var nodes		= $$('input.PropertyAmenities');
	// 1.6 Compatibility
	//var nodes		= $('search-amenities').select('input');
	
	//alert('nodes: ' + nodes.length);
	var amenities = '';
	amenities = nodes.collect(function(s) {
		val = s.getValue();
		if (val == '' || val == 0 || val == null) return;
		return val;
	}).join('|');
	
	var link = 'properties/index/region:' + region + '/meeting_sq_ft:' + meeting + "/rooms:" + rooms + "/amenities:" + amenities;
	new Ajax.Updater(
		'content',
		link, 
		{
			asynchronous:true, 
			evalScripts:true, 
			onComplete:function(response, json) 
			{
				Element.hide('spinner');
			}, 
			onLoading:function(request) 
			{
				Element.show('spinner');
			}, 
			requestHeaders:['X-Update', 'content']
		}
	);
} // propertiesUpdate
*/

/**
 * OPEN WIN URL
 * Opens an url using prototype window.
 */
function openWinURL(url, title)
{
	var win = new Window({
		className: "mac_os_x", 
		title: title,
		width: 640, 
		height: 480, 
		url: url, 
		showEffectOptions: {
			duration:1.5
		}
	});
	win.showCenter();
} // openWinURL
