I know there is already an existing thread that closed that @member gave some great code for! ((link expired))
I used the codes provided and all of them worked great, except for the the !wins code. It keeps coming up with an error 'Right-hand side of 'instanceof' is not an object. I am too much of a noob with code to spot where the error is in the code!
Any help would be greatly appreciated!