var oForm = createForm( 'url/destino ); setFormField( oForm, param1, value1); setFormField( oForm, param2, value2); oForm.submit();