If you've lost your HUF deed created in 1997 and need a copy, you should try to apply at the registrar's office where you were living at the time. Since you don't recall the exact location, checking the registrar's office in the area you resided in 1997 is the best course of action. This is also the place where the HUF deed would have been registered for your PAN card application.