Quote:
Is there any skeleton code I can use
Not really, or at least not that I'm aware of. You could try checking the code bank but I think you'll be lucky because you're requirement is specific to you so it's unlikely anyone else will have solved it... or at least, if they have solved it they won't have considered it to be worth posting. I'm afraid you're going to hgave to create your own skeleton on this one, but it shouldn't be too hard and there are plenty of tutorials and references out there to help you.