I have some JavaScript code that looks like:
function statechangedPostQuestion() { //alert("statechangedPostQuestion"); if (xmlhttp.readyState==
this works in all browsers (IE is an oddball)
setTimeout( (function(x) { return function() { postinsql(x); }; })(topicId) , 4000);