<!--
function submitIt(o){
	o.blur();
	document.forms['search'].submit();
	return false;
}

function changeSort(si){
	var sortURL="sort.html";
	switch(si){
		case 1:
			sortURL += "?field=dayCount&order=DESC";
			break;
		case 2:
			sortURL += "?field=pricePerPerson&order=ASC";
			break;
		case 3:
			sortURL += "?field=pricePerPerson&order=DESC";
			break;
		case 4:
			sortURL += "?relevance=true";
			break;
		default:
			sortURL += "?field=dayCount&order=ASC";
	}
	document.location = sortURL;
}

var delaySelect=false;
function toggleSortMethod(){
	var targetSelect;
	if(targetSelect=document.forms[0]['sortMethod']){
		if(targetSelect.options.length < 3){
			var rel=document.createElement('option');
			rel.value=rel.innerHTML="relevance";
			if(bw.ie){
				targetSelect.options.appendChild(rel);
				delaySelect=targetSelect;
				setTimeout("delaySelect.selectedIndex=2; delaySelect=false;", 100);
			}
			else{
				targetSelect.options.add(rel);
				targetSelect.selectedIndex=2;
			}
		}
		targetSelect.onchange=null;
	}
}

function typeFormat(previousINH, skipHeightAdjust){
	if(arguments.length == 1){
		console.log("yippee");
		reformat(previousINH);
	}
	else if(arguments.length == 2){
		console.log("yappee");
		reformat(previousINH, skipHeightAdjust);
	}
	else reformat();
}

//-->
