<script> function setFocus() { if(focusElement != null) {
document.forms[0].elements["myelementname"].focus(); } } </script>