in reply to generate combinations of lists
Can u please check Link. U may get some better idea to finish your task easier.