after change of stylesheet and merging of prahsants nd mine version seperated header footer... added values of select functions