Okay, I have been trying to fix for the past couple hours but this is starting to become ridiculous.
On the first couple lines, I have this code:
var XMLHttpRequestObject = false;
if(window.XMLHttpRequest){
XMLHttpRequestObject = new XMLHttpRequest();
}
else...