function send() { for (var i = 0; i < count; i++) formObj = new DHTMLSuite.form({ formRef:"myForm"+i,action:"send.php",responseEl:"formResponse"+i}); formObj.submit(); }