Car gets warm then loses power when idling

a 2000 daewoo leganza when you sit and idle for more than 5 minutes then accelerate car loses power and wants to stall out