Copiar código del código de la siguiente manera:
var xmlhttp;
Función createExmlhttprequest ()
{{
if (window.xmlhttprequest)
{{
xmlhttp = new xmlhttprequest ();
if (xmlhttp.overridemeType)
{{
xmlhttp.overridemeMeType ("text/xml");
}
}
else if (window.activexObject)
{{
intentar
{{
xmlhttp = new ActiveXObject ("msxml2.xmlhttp");
}
captura (e)
{{
xmlhttp = new ActiveXObject ("Microsoft.xmlhttp");
}
}
if (! xmlhttp)
{{
Window.alert ("Su navegador no admite la creación de objetos xmlhttprequest");
}
Return xmlhttp;
}