// JavaScript Document

function setArea(area){
	document.propertyFilter.area.value = area;
	document.propertyFilter.submit();
}

function setProperty(type){
	document.propertyFilter.type.value = type;
	document.propertyFilter.area.value = '';
	document.propertyFilter.submit();
}

function setBudget(start,end){
	if (start == "all"){
		document.propertyFilter.budget_start.value = "0";
		document.propertyFilter.budget_end.value = "0";
	}else{
		document.propertyFilter.budget_start.value = start;
		document.propertyFilter.budget_end.value = end;
	}
	
	document.propertyFilter.type.value = '';
	document.propertyFilter.area.value = '';
	
	document.propertyFilter.submit();
}

// JavaScript Document
function loadImage(img, path){
	
	_get("imgMask").style.display = "block";
	_get("imgMask").style.height = getWindowHeight() + "px";
	_get("imgMask").style.width = getWindowWidth() + "px";
	
	_get("imgContainerOuter").style.display = "block";
	_get("imgContainerOuter").style.height = getWindowHeight() + "px";
	_get("imgContainerOuter").style.width = getWindowWidth() + "px";
	
	_get("imgContainer").style.display = "block";
	_get("imgContainer").style.top = ((getWindowHeight() / 2) - 240) + "px";
	_get("imgContainer").style.left = ((getWindowWidth() / 2) - 320) + "px";
	
	_get('imgArea').innerHTML = "<img src=image-show.php?x=watermark-auctionnetwork.png&y="+path+"/&z="+img+" />";
	document.body.scrollTop = "0";
	document.documentElement.scrollTop = "0";
	document.body.style.overflow = "hidden";
}

function unloadImage(){
	_get("imgContainer").style.display = "none";
	_get("imgContainerOuter").style.display = "none";
	_get("imgMask").style.display = "none";
	
	document.body.style.overflow = "scroll";
}