function showDetail(sndLCName, recLCName, lotunit, property) {
	if(!document.getElementById || !document.getElementById("framedetails")) return false;
	if(!sndLCName || !recLCName || !lotunit || !property) return false;
	if(!document.getElementById("page-address")) return false;
	
	var page_address = document.getElementById("page-address");
	
	var iframe = document.getElementById("framedetails");
	
	var newsrc = "/real_estate/property_detail.php?sbid="+sndLCName+"&kmid="+recLCName+"&LotUnit="+lotunit+"&Property="+property+"";
	var push_to_address_bar = "#&LotUnit="+lotunit+"&Property="+property+"";
	
	iframe.setAttribute("src", newsrc);
	
	page_address.setAttribute("name", push_to_address_bar.split("#")[1]);
	if(!location.hash) {
		location.href += push_to_address_bar;
	}
	else {
		location.hash = push_to_address_bar;
	}
	return 0;
}

function loadUrl(iframeQuery) {
	if(location.hash) {
		location.hash = "#"+iframeQuery;
	}
	else {
		location.href += "#"+iframeQuery;
	}
}

function newSearch()
{	
	window.location = "/real_estate/index.php?mode=p&Property=search";
	return false;
}

/*
function callLightBox(href) {
	try {
		valid.iframeActivate(href);
		$('lightbox-page').addClassName("wide");
	}
	catch(e) {
		valid = new lightboxPage();
		valid.iframeActivate(href);
		$('lightbox-page').addClassName("wide");
	}	
}
*/