I have some JavaScript code that looks like:
function statechangedPostQuestion() { //alert("statechangedPostQuestion"); if (xmlhttp.readyState==
The easiest cross browser solution for supporting parameters in setTimeout:
setTimeout(function() { postinsql(topicId); }, 4000)
If you don't mind not supporting IE 9 and lower:
setTimeout(postinsql, 4000, topicId);
https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout