May I ask why you are asking two completely different things here ?
Maybe you've mistakenly pasted this code here, but please do not crosspost the same question in different forums. Thank you
https://coderanch.com/forums/ [ May 25, 2007: Message edited by: Satou kurinosuke ]