
function searchFormSubmit(theForm,isSearch) {
	var myurl = '';

	if(isSearch)
		myurl += 'Search/Ritchie_Builders/Ritchie_Building/';
	else
		myurl += 'OpenHouses/';

	var i = 0;
	for (i = 0; i < theForm.length; i++) { 
		if (theForm.elements[i].name && theForm.elements[i].value != '' ) {
			myurl += theForm.elements[i].name + "/" + theForm.elements[i].value + "/";
		}
	}
	document.location = myurl + 'Listings/sort/Type';
}

function jumpSortMenu(selObj,restore,url) {
  if (selObj.options[selObj.selectedIndex].value != '') {
    eval("window.location='" + url + "/sort/"
         + selObj.options[selObj.selectedIndex].value + "'");
  }
  if (restore) {
    selObj.selectedIndex = 0;
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);