function doSearch()
{
	var optionIdList = [];
	var queryString = '';

	if ((document.getElementById('keyword')) && (document.getElementById('keyword').value != ''))
	{
		queryString = 'keyword='+escape(document.getElementById('keyword').value);
	}
	
	if ((document.getElementById('location_type')) && (document.getElementById('location_type').selectedIndex > 0))
	{
		queryString += ((queryString != '') ? '&' : '')	+ 'location_type='+escape(document.getElementById('location_type')[document.getElementById('location_type').selectedIndex].value);
	}

	var formDropdown = document.getElementsByTagName('select'); 
	for (var i = 0; i < formDropdown.length; i++)
	{
		if ((formDropdown[i].name.substring(0,14) == 'dropdownOption') && (formDropdown[i].selectedIndex > 0))
		{
			optionIdList.push(formDropdown[i][formDropdown[i].selectedIndex].value);
		}
	}
	
	var formCheckbox = document.getElementsByTagName('input'); 
	for (var i = 0; i < formCheckbox.length; i++)
	{
		if ((formCheckbox[i].name.substring(0,14) == 'checkboxOption') && (formCheckbox[i].type == 'checkbox'))
		{
			if (formCheckbox[i].checked) 	optionIdList.push(formCheckbox[i].value);
		}
	}
	
	if (optionIdList.length > 0)
	{
		queryString += ((queryString != '') ? '&': '') + 'option='+optionIdList.join(',');
	}
	
	if (document.getElementById('nnha') && document.getElementById('nnha').checked)
	{
		queryString += ((queryString != '') ? '&': '') + 'nnha=1';
	}
	
	

	if (queryString != '')
	{
		document.location.href= '?' + queryString;
	}
	else
	{
		if (document.location.href.indexOf('?') >= 0)
		{
			document.location.href = document.location.href.substring(0, document.location.href.indexOf('?'));
		}	
	}

}