var bforcesearch = 0;

function changeform(i) {
	if (i==1) {
		document.forms.searchform.action = '/city_info/display/search/default.cfm?exact=1';
		bforcesearch = 1;
	} else {
		document.forms.searchform.action = '/city_info/display/boerse/default.cfm';
		bforcesearch = 0;
	}	
}

function forcesearch() {
	if (bforcesearch==0)
		document.forms.searchform.search.value = document.forms.searchform.search.value.replace(/ /gi,' + ');
}
function checkPrice(val) {
	getAjaxVal('http://www.vatgia.com/ajax/autocomplete.php?q=' + val + '&limit=20&timestamp=','pricefound','innerHTML');	
}
function modlink() {	
	obj = getobj('pricefound');
	//alert(obj.innerHTML);
	obj.innerHTML = obj.innerHTML.replace('<A href="http://admin.activecity.net/','<a href="http://vatgia.com/');
	//alert(obj.innerHTML);
}

function changelink(strs) {
	ss = strs.split(",");
	
	str = insertParam(document.location.toString(),"order",ss[0]);
	str = insertParam(str,"direction",ss[1]);
	
	window.location = str;
}
