>Zaslat daòový doklad?</td><td colspan="3"><input type="checkbox" name="doklad"<?php
print(""
// some hacks as "readonly" not supported for "checkbox"es (->"disabled" for them)
- .($readonly ? "" : " onclick=\"sum_total(this)\"")
+ .(!($have_js || $readonly) ? "" : " onclick=\"sum_total(this)\"")
.(!($have_js || $readonly) ? "" : " disabled=\"disabled\"")
.(!isset($doklad) ? "" : " checked=\"checked\"")
.ereg_replace(" readonly=\"readonly\"","",$addons)." />");
</table></td></tr>
<tr><td align="center" id="submit_button"><?php
print("<input type=\"submit\" name=\"$submit_name\" value=\"".htmlspecialchars($submit_value)."\""
- ." onclick=\"return(validate(this.form))\" />");
+ .(!($have_js || $readonly) ? "" : " onclick=\"return(validate(this.form))\"")
+ ." />");
?></td></tr>
</table></form>
</blockquote>