I've been unable to figure out why the following script isn't working. I'm trying to use an email validation service from another site. The validation site returns an xml file.

For testing I'm using a url with a test name included. After it's working I'll change it to append the email I want tested.

The following code was taken from "http://www.htmlgoodies.com/primers/jsp/article.php/3608046"

Code:
<script language="javascript"  type="text/javascript">
var url =  "http://www.bestcodingpractices.com/email_verification/e-verify.asp?email=editornot@best$

// Create XMLHTTP object function
if(typeof(XMLHttpRequest)!='undefined'){
    var getXMLHttpObj = function(){ return new XMLHttpRequest(); }
} else {
    var getXMLHttpObj = function(){
        var activeXObjects = ['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.4.0',
        'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP'];
        for(var i=0; i<activeXObjects.length; i++){
            try{
                return new ActiveXObject(activeXObjects[i]);
            }catch(err){}
        }
    }
}
 
 
//request to our server
function getInfo(){
var oXml = getXMLHttpObj();

oXml.open('GET', url, true);
oXml.onreadystatechange = processingFunction;
oXml.send();
}
 
function processingFunction(){
document.write("empty");
    if(oXml.readyState!=4) return; // our request is not done
    
    // we process the results here.  More on that later!
    var xmlDoc   = oXml.responseXML;
    var textDoc   = oXml.responseText;
}
 
document.write(xmlDoc);
document.write(textDoc);
I put in the last 2 lines to see what's happening and nothing prints.

The Error Console in Firefox reports "getInfo is not defined."

Help appreciated.

-sperchy