You can check with the local junkyard and see if you can pull an engine in reasonably good condition and have it installed. Many places actually do this and give you a 3-4 month warranty without telling you the engine came from a junkyard.
A 22REC is said to be $400-700. Say pay the same amount for labor you'll have $800-1400. However, it the engine is faulty and you have to pull it even under junkyard warranty then you're out labor.
=A0 =A0 =A0 =A0 My '97 4Runner engine is gone - it's somewhere between
> =A0 =A0 =A0 =A0 $2000 to $3500 to repair (awaiting details).
>
> =A0 =A0 =A0 =A0 So, is it worth fixing? =A0Or write it off? Bluebook is
> =A0 =A0 =A0 =A0 about $5K.
>
> =A0 =A0 =A0 =A0 Tough decision - looking for net.wisdom on which way to go= .
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 alan