I attempted to format this in NetBeans in order to find some order in it. copy pasting it into netbeans just gives you a single line of commented out words and no way in figuring out where the comments start and end and the code begins. OP, if at all possible, please re-post code in a properly formatted way.