function priceRecount(x){	
	x = (1040*(8/((220-(2*x))/220)-8)).round(-2);
	if (x>=1000000) x = Math.round(x.round(-2));
	return x;
}

function crsrchPriceRecount(x,inverse){
    if (inverse)
        return Math.round((110*(x/(x+8*1000))));
    x = (1000*(8/((220-(2*x))/220)-8)).round(-2);
    if (x >= 3000) x = Math.round(x.round(-3));
    if (x >= 30000) x = Math.round(x.round(-4));
    return x;
}

var Setting =
{
	PriceMin : 18,
	PriceMax : 49,
	YearMin : 1999,
	YearMax : 2003,
    PriceEnhMin : 0,
	PriceEnhMax : 80000,
	YearEnhMin : 1970,
	YearEnhMax : currentYear(),
    KmMin : 0,
	KmMax : 300000
};
