I am sorry to inform you that if you lose your job, your green card application goes out along with it. However, there is an exception. You may want to look into AC 21 which may allow your green card application to be transferred to a new employer. My best advice is to search for a new employer now.
Answered on Dec 03rd, 2010 at 5:28 PM