function submitit() { w_action=window.open('$self_url','action'); document.forms['main'].submit(); }