/**
 * Accommodatie zoeken
 */
function usr_Include_accommodatieszoeken()
{
	/**
	 * Class variables
	 */
	this.obj_lib_ajax = new lib_Ajax();




	/**
	 * Submit searchform
	 */
	this.submitSearchform = function()
	{
		var parameters = 'act=' + 'getValues'
					   + '&accommodatie=' + document.getElementById('field_accommodatie').value
					   + '&gebied=' + document.getElementById('field_gebied').value
					   + '&aantalPersonen=' + document.getElementById('field_aantalPersonen').value
					   + '&zwembad=' + document.getElementById('field_zwembad').value;

		obj_usr_include_accommodatieszoeken.obj_lib_ajax.postAjax('/libraries/accommodaties.php', parameters, this.callbackAjax_submitSearchform);
	}

	this.callbackAjax_submitSearchform = function()
	{
		obj_usr_include_accommodatieszoeken.obj_lib_ajax.callbackAjax('div_hidden_searchform', 0, 1);
		if(document.getElementById('searchReady'))
		{
			//document.getElementById('form_zoekaccommodaties').submit();
			window.location.href = '/accommodaties_zoeken';
		}
	}
}

