code:try { http = new XMLHttpRequest; } catch(e) { try { http = new ActiveXObject("Microsoft.XMLHTTP"); } }