function firstStoryRead(newsId, sType){ var tvajax; try { tvajax = new XMLHttpRequest(); } catch (e) { try { tvajax= new ActiveXObject("Msxm12.XMLHTTP"); } catch (e) { try { tvajax = 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(); tvajax.open('POST', 'newsdetails_ajax.php', 'true'); tvajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded;text/html;charset=utf-8"); tvajax.setRequestHeader('If-Modified-Since', 'Wed, 1 Jan 2011 00:00:00 GMT'); poststr="&sType=" + escape(sType) + "&newsId=" + escape(newsId); tvajax.send(poststr); tvajax.onreadystatechange=function() { //alert(tvajax.responseText); if(tvajax.readyState == 4) { com_obj=document.getElementById('firststory'); //com_obj=document.getElementById('intro').style.display = 'none'; com_obj.innerHTML=tvajax.responseText; } } }