SHAH ALAM: A former headmaster of a religious school pleaded not guilty in the Sessions Court here Thursday to charges of soliciting and receiving bribes amounting to RM164,800 in connection with a project for maintenance and upgrading of buildings and infrastructure for religious schools in Selangor.