I have some JavaScript code that looks like:
function statechangedPostQuestion() { //alert("statechangedPostQuestion"); if (xmlhttp.readyState==
I think you want:
setTimeout("postinsql(" + topicId + ")", 4000);