Copie o código do código da seguinte forma:
var xmlhttp;
Função createxmlHttPrequest ()
{{
if (window.xmlhttprequest)
{{
xmlHttp = new XmlHttPrequest ();
if (xmlhttp.overridemimetype)
{{
xmlhttp.Overridemimetype ("text/xml");
}
}
else if (window.activexObject)
{{
tentar
{{
xmlHttp = new ActivexObject ("msxml2.xmlHttp");
}
captura (e)
{{
xmlhttp = new ActiveXObject ("Microsoft.xmlHttp");
}
}
if (! xmlHttp)
{{
Window.alert ("Seu navegador não suporta a criação de objetos xmlHttPrequest");
}
Retornar xmlHttp;
}