function newsrepeatation(secId, secrId, nType){ var nrepeat; try { nrepeat = new XMLHttpRequest(); } catch (e) { try { nrepeat= new ActiveXObject("Msxm12.XMLHTTP"); } catch (e) { try { nrepeat = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support Ajax, because of this you would not be able to use talkingviews please update your browser."); } } } var d = new Date(); timestamp=d.toUTCString(); nrepeat.open('POST', 'newsrepeatation_ajax.php', 'true'); nrepeat.setRequestHeader("Content-type", "application/x-www-form-urlencoded;text/html;charset=utf-8"); nrepeat.setRequestHeader('If-Modified-Since', 'Wed, 1 Jan 2011 00:00:00 GMT'); poststr="&secId=" + escape(secId) + "&secrId=" + escape(secrId) + "&nType=" + escape(nType); nrepeat.send(poststr); nrepeat.onreadystatechange=function() { //alert(nrepeat.responseText); if(nrepeat.readyState == 4) { com_obj=document.getElementById('newsrepeatation'); com_obj.innerHTML=nrepeat.responseText; } } }