<input type="button" onclick="document.getElementById('emailform').setAttribute('action', 'emailform.php') ; document.getElementById('emailform').submit();" value="תצוגה מקדימה" />