// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i <bbcode>
</script>
<form>
<span><b>".$lang["Quick_Reply"].":</b><br>\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input><br></span>\n
<span><input></span><br><span>";