Dynamically hide panel in detail view based database field value

In have Custom module called Quotes where I have a panel at the top in Detail view.I have database field called Status in Quotes table what I want is when status field in Quotes table is 1 then only the panel should be visible or else not can any one help me Regarding this.Thanks in Advance.I am using 6.5.20 community edition.