Thank you for sharing your code!

But Error ! IE7:
The data area passed to a system call is too small.