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"

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

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

oXml.open('GET', url, true);
oXml.onreadystatechange = processingFunction;
function processingFunction(){
    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;
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.