function sendPost(formId,spanId) { var form = document.getElementById(formId); var span = document.getElementById(spanId); var postRequest = new String(""); var n,v;// n -> name , v -> value for(var i=0;i= 5) try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp=false; } } @else xmlhttp=false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest!='undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp=false; } } return xmlhttp; }